Skip to content

Commit

Permalink
Fix signature (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jul 15, 2020
1 parent fcd6059 commit 08e1bea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Builder/FormContractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,12 @@ private function hasAssociation(FieldDescriptionInterface $fieldDescription): bo
/**
* @param string[] $classes
*/
private function isAnyInstanceOf(string $type, array $classes): bool
private function isAnyInstanceOf(?string $type, array $classes): bool
{
if (null === $type) {
return false;
}

foreach ($classes as $class) {
if (is_a($type, $class, true)) {
return true;
Expand Down

0 comments on commit 08e1bea

Please sign in to comment.