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 dcc8a46 commit 05a6285Copy full SHA for 05a6285
Constraint.php
@@ -120,7 +120,7 @@ public function __construct($options = null)
120
if (\is_array($options)) {
121
reset($options);
122
}
123
- if (\is_array($options) && \count($options) > 0 && \is_string(key($options))) {
+ if ($options && \is_array($options) && \is_string(key($options))) {
124
foreach ($options as $option => $value) {
125
if (array_key_exists($option, $knownOptions)) {
126
$this->$option = $value;
0 commit comments