/**
* Initializes the type guesser.
*
* @throws UnexpectedTypeException if the type guesser is not an instance of FormTypeGuesserInterface
*/
private function initTypeGuesser(): void
{ $this->typeGuesserLoaded = true;
$this->typeGuesser =
$this->
loadTypeGuesser();
if (null !==
$this->typeGuesser && !
$this->typeGuesser instanceof FormTypeGuesserInterface
) { throw new UnexpectedTypeException($this->typeGuesser, FormTypeGuesserInterface::
class);
} }}