Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
[zendframework/zendframework#4815] Better error message
Browse files Browse the repository at this point in the history
- Ensure the message indicate the method being invoked, and the
  fully-qualified method name of the replacement.
  • Loading branch information
weierophinney committed Jul 19, 2013
1 parent 9e7b400 commit dbcb148
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit dbcb148

Please sign in to comment.