/usr/share/php/Symfony/Component/DependencyInjection/Exception
NameSizeModeActions
AutowiringFailedException.php20130644editdlrm
BadMethodCallException.php4680644editdlrm
EnvNotFoundException.php4860644editdlrm
EnvParameterException.php7760644editdlrm
ExceptionInterface.php6100644editdlrm
InvalidArgumentException.php5370644editdlrm
InvalidParameterTypeException.php13380644editdlrm
LogicException.php4440644editdlrm
OutOfBoundsException.php4620644editdlrm
ParameterCircularReferenceException.php9340644editdlrm
ParameterNotFoundException.php33790644editdlrm
RuntimeException.php5070644editdlrm
ServiceCircularReferenceException.php10180644editdlrm
ServiceNotFoundException.php17990644editdlrm
Edit: /usr/share/php/Symfony/Component/DependencyInjection/Exception/InvalidParameterTypeException.php (1338B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Exception; /** * Thrown when trying to inject a parameter into a constructor/method with an incompatible type. * * @author Nicolas Grekas * @author Julien Maulny */ class InvalidParameterTypeException extends InvalidArgumentException { public function __construct(string $serviceId, string $type, \ReflectionParameter $parameter) { $acceptedType = $parameter->getType(); $acceptedType = $acceptedType instanceof \ReflectionNamedType ? $acceptedType->getName() : (string) $acceptedType; $this->code = $type; $function = $parameter->getDeclaringFunction(); $functionName = $function instanceof \ReflectionMethod ? sprintf('%s::%s', $function->getDeclaringClass()->getName(), $function->getName()) : $function->getName(); parent::__construct(sprintf('Invalid definition for service "%s": argument %d of "%s()" accepts "%s", "%s" passed.', $serviceId, 1 + $parameter->getPosition(), $functionName, $acceptedType, $type)); } }