From dbcb148dfda116e24208e1394f1614608f761469 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Fri, 19 Jul 2013 09:23:32 -0500 Subject: [PATCH] [zendframework/zf2#4815] Better error message - Ensure the message indicate the method being invoked, and the fully-qualified method name of the replacement. --- src/Adapter/Http.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Adapter/Http.php b/src/Adapter/Http.php index ea4719b..2312564 100644 --- a/src/Adapter/Http.php +++ b/src/Adapter/Http.php @@ -384,11 +384,12 @@ public function authenticate() */ protected function _challengeClient() { - trigger_error( - 'This method is deprecated and will be removed in the future' - . ', please use the public challengeClient() instead', - E_USER_DEPRECATED - ); + trigger_error(sprintf( + 'The method "%s" is deprecated and will be removed in the future; ' + . 'please use the public method "%s::challengeClient()" instead', + __METHOD__, + __CLASS__ + ), E_USER_DEPRECATED); return $this->challengeClient(); }