Skip to content

Commit a94e6d8

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Bump license year Bump license year [HttpClient] Turn negative timeout to a very long timeout Features goes to 6.x branch fix lowest required PropertyInfo component release [Validator] throw when Constraint::_construct() has not been called Bump Symfony version to 5.3.14 Update VERSION for 5.3.13 Update CHANGELOG for 5.3.13 Bump Symfony version to 4.4.37 Update VERSION for 4.4.36 Update CONTRIBUTORS for 4.4.36 Update CHANGELOG for 4.4.36 Allow symfony/runtime plugin
2 parents 507ad4d + 93fa127 commit a94e6d8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Constraint.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ public function __isset(string $option)
233233
*/
234234
public function addImplicitGroupName(string $group)
235235
{
236+
if (null === $this->groups && \array_key_exists('groups', (array) $this)) {
237+
throw new \LogicException(sprintf('"%s::$groups" is set to null. Did you forget to call "%s::__construct()"?', static::class, self::class));
238+
}
239+
236240
if (\in_array(self::DEFAULT_GROUP, $this->groups) && !\in_array($group, $this->groups)) {
237241
$this->groups[] = $group;
238242
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2021 Fabien Potencier
1+
Copyright (c) 2004-2022 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)