namespace Symfony\Component\Debug\FatalErrorHandler;
-use Symfony\Component\Debug\Exception\UndefinedFunctionException;
use Symfony\Component\Debug\Exception\FatalErrorException;
+use Symfony\Component\Debug\Exception\UndefinedFunctionException;
/**
* ErrorHandler for undefined functions.
*/
public function handleError(array $error, FatalErrorException $exception)
{
- $messageLen = strlen($error['message']);
+ $messageLen = \strlen($error['message']);
$notFoundSuffix = '()';
- $notFoundSuffixLen = strlen($notFoundSuffix);
+ $notFoundSuffixLen = \strlen($notFoundSuffix);
if ($notFoundSuffixLen > $messageLen) {
return;
}
}
$prefix = 'Call to undefined function ';
- $prefixLen = strlen($prefix);
+ $prefixLen = \strlen($prefix);
if (0 !== strpos($error['message'], $prefix)) {
return;
}