Skip to content

Commit 93fa127

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Bump license year [HttpClient] Turn negative timeout to a very long timeout Features goes to 6.x branch [Validator] throw when Constraint::_construct() has not been called 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 3b597f5 + ab04e15 commit 93fa127

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
@@ -235,6 +235,10 @@ public function __isset(string $option)
235235
*/
236236
public function addImplicitGroupName(string $group)
237237
{
238+
if (null === $this->groups && \array_key_exists('groups', (array) $this)) {
239+
throw new \LogicException(sprintf('"%s::$groups" is set to null. Did you forget to call "%s::__construct()"?', static::class, self::class));
240+
}
241+
238242
if (\in_array(self::DEFAULT_GROUP, $this->groups) && !\in_array($group, $this->groups)) {
239243
$this->groups[] = $group;
240244
}

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)