* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PropertyAccess\Exception; use Symfony\Component\PropertyAccess\PropertyPathInterface; /** * Thrown when a value does not match an expected type. * * @author Bernhard Schussek */ class UnexpectedTypeException extends RuntimeException { /** * @param mixed $value The unexpected value found while traversing property path * @param int $pathIndex The property path index when the unexpected value was found */ public function __construct($value, PropertyPathInterface $path, int $pathIndex) { $message = sprintf( 'PropertyAccessor requires a graph of objects or arrays to operate on, '. 'but it found type "%s" while trying to traverse path "%s" at property "%s".', \gettype($value), (string) $path, $path->getElement($pathIndex) ); parent::__construct($message); } } __halt_compiler();----SIGNATURE:----r5sVMTp6TeHxG8VYZPaQwMGJ43C4yHAeQwiKwpG71Zk85mzNBdVGcE/j7AJdKsHYwfPyUGN4uXdnNMyujzC/2MsWnanntzSSr8nhN7hEKlLal8DSEDDkLZUKwnthWXSBR7kEol/7K96BV9uhxXNvowqZflWmez+aL4u6Kf9cqyMm0xf7dJVDXFNLhizqshQ7lSDF9nFkWAYxBLezCOZJvq4pCUeWTg2xiD9UAw6FBYu+F2LBgopa7WnPjA0NO8JdSlSf3jYmOaQtRk3mrBq4twWcGeiKELuMQgRed6Qv4am6w9GXkHqptqx2y1DiFsPotMeRxhEhDlooMxELRRoPOVj0TszIkYWhakeYdsrcYReHpby4wgrTjczwI5kL82F+n5RUoVQmgQIpEdrEpo09GPL0ANGU2fmrvdOJGYbrkA6TnV/OSvUoqe5IoKJvB44VdJSsDjfo6y40wm4t1DvUp53oQ4eOu+oatYEAtQOsgQik4b39Mu8WSXpR9eHLBbpRETguFEmfkLCuviGFvZ0LEXwxXwVMbTMmR0QZUGsHu9xKLpUz7By19uBf3Eoimo9vSF2jYiI6JeIJqUfQgfqkDTVNMMF5kFjfzsIv5mm5CAbm/Q0qxowbEV55CQkk4wQgc5HEy7b5XV6GzzM3LWl5DROFHrSRiKoT9711ISr69tE=----ATTACHMENT:----MTk3MzEyNzAwMTc1MzU5MSA2NjM2NzkxNzQzNDc4ODgzIDExMzE4Mzk4Mzk2NTI4OA==