You are here

public static function UnexpectedValueException::invalidParameterTypeHint in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php \Doctrine\Common\Proxy\Exception\UnexpectedValueException::invalidParameterTypeHint()

Parameters

string $className:

string $methodName:

string $parameterName:

\Exception $previous:

Return value

self

1 call to UnexpectedValueException::invalidParameterTypeHint()
ProxyGenerator::getParameterType in vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php

File

vendor/doctrine/common/lib/Doctrine/Common/Proxy/Exception/UnexpectedValueException.php, line 51

Class

UnexpectedValueException
Proxy Unexpected Value Exception.

Namespace

Doctrine\Common\Proxy\Exception

Code

public static function invalidParameterTypeHint($className, $methodName, $parameterName, \Exception $previous) {
  return new self(sprintf('The type hint of parameter "%s" in method "%s" in class "%s" is invalid.', $parameterName, $methodName, $className), 0, $previous);
}