You are here

class UnexpectedTypeException in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Exception/UnexpectedTypeException.php \Symfony\Component\Validator\Exception\UnexpectedTypeException
  2. 8 vendor/symfony/http-foundation/File/Exception/UnexpectedTypeException.php \Symfony\Component\HttpFoundation\File\Exception\UnexpectedTypeException
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Exception/UnexpectedTypeException.php \Symfony\Component\Validator\Exception\UnexpectedTypeException

Hierarchy

Expanded class hierarchy of UnexpectedTypeException

37 files declare their use of UnexpectedTypeException
AbstractComparisonValidator.php in vendor/symfony/validator/Constraints/AbstractComparisonValidator.php
AllValidator.php in vendor/symfony/validator/Constraints/AllValidator.php
BlankValidator.php in vendor/symfony/validator/Constraints/BlankValidator.php
CallbackValidator.php in vendor/symfony/validator/Constraints/CallbackValidator.php
CardSchemeValidator.php in vendor/symfony/validator/Constraints/CardSchemeValidator.php

... See full list

File

vendor/symfony/validator/Exception/UnexpectedTypeException.php, line 14

Namespace

Symfony\Component\Validator\Exception
View source
class UnexpectedTypeException extends ValidatorException {
  public function __construct($value, $expectedType) {
    parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, is_object($value) ? get_class($value) : gettype($value)));
  }

}

Members