Skip to content

Commit

Permalink
Merge e791e8a into 24f6ff1
Browse files Browse the repository at this point in the history
  • Loading branch information
guilliamxavier committed Mar 31, 2021
2 parents 24f6ff1 + e791e8a commit 603ceba
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -32,8 +32,8 @@ public function create(Constraint $constraint, PropertyMetadata $propertyMetadat
{
$choices = [];

if (\is_callable($choices = $constraint->callback)) {
$choices = $choices();
if (\is_callable($constraint->callback)) {
$choices = ($constraint->callback)();
} elseif (\is_array($constraint->choices)) {
$choices = $constraint->choices;
}
Expand Down

0 comments on commit 603ceba

Please sign in to comment.