Skip to content
Browse files

[Form] fixed AbstractExtension when an extension does not have a guesser

  • Loading branch information...
1 parent ba2b35a commit ae0988bb36ce2e02ad1b34eff28cb8c747c9b3dc @fabpot fabpot committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 AbstractExtension.php
View
2 AbstractExtension.php
@@ -212,7 +212,7 @@ private function initTypeGuesser()
$this->typeGuesserLoaded = true;
$this->typeGuesser = $this->loadTypeGuesser();
- if (!$this->typeGuesser instanceof FormTypeGuesserInterface) {
+ if (null !== $this->typeGuesser && !$this->typeGuesser instanceof FormTypeGuesserInterface) {
throw new UnexpectedTypeException($this->typeGuesser, 'Symfony\Component\Form\FormTypeGuesserInterface');
}
}

0 comments on commit ae0988b

Please sign in to comment.
Something went wrong with that request. Please try again.