We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba84cf commit ee7de0cCopy full SHA for ee7de0c
Constraint.php
@@ -226,6 +226,10 @@ public function __isset($option)
226
*/
227
public function addImplicitGroupName($group)
228
{
229
+ if (null === $this->groups && \array_key_exists('groups', (array) $this)) {
230
+ throw new \LogicException(sprintf('"%s::$groups" is set to null. Did you forget to call "%s::__construct()"?', static::class, self::class));
231
+ }
232
+
233
if (\in_array(self::DEFAULT_GROUP, $this->groups) && !\in_array($group, $this->groups)) {
234
$this->groups[] = $group;
235
}
0 commit comments