From 5076a778a5949f5654ca07d255c8468ae6732c4a Mon Sep 17 00:00:00 2001 From: Wouter J Date: Fri, 28 Nov 2014 20:09:16 +0100 Subject: [PATCH] Improved error message --- .../FatalErrorHandler/UndefinedMethodFatalErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php b/src/Symfony/Component/Debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php index 917794cfa0..f734d6bb7d 100644 --- a/src/Symfony/Component/Debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php +++ b/src/Symfony/Component/Debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php @@ -34,7 +34,7 @@ class UndefinedMethodFatalErrorHandler implements FatalErrorHandlerInterface $className = $matches[1]; $methodName = $matches[2]; - $message = sprintf('Attempted to call method "%s" on class "%s".', $methodName, $className); + $message = sprintf('Attempted to call an undefined method named "%s" of class "%s".', $methodName, $className); $candidates = array(); foreach (get_class_methods($className) as $definedMethodName) {