From e8fa3d8750eccc911d0227f016a7bb8272f29600 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 6 Jun 2019 09:30:50 +1200 Subject: [PATCH] DOCS Fix incorrect deprecation reference in MonologErrorHandler --- src/Logging/MonologErrorHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Logging/MonologErrorHandler.php b/src/Logging/MonologErrorHandler.php index 28f355c32..c45e96422 100644 --- a/src/Logging/MonologErrorHandler.php +++ b/src/Logging/MonologErrorHandler.php @@ -18,13 +18,13 @@ class MonologErrorHandler implements ErrorHandler * Set the PSR-3 logger to send errors & exceptions to. Will overwrite any previously configured * loggers * - * @deprecated 4.4.0:5.0.0 Use pushHandler() instead + * @deprecated 4.4.0:5.0.0 Use pushLogger() instead * @param LoggerInterface $logger * @return $this */ public function setLogger(LoggerInterface $logger) { - Deprecation::notice('4.4.0', 'Please use pushHandler() instead'); + Deprecation::notice('4.4.0', 'Please use pushLogger() instead'); $this->loggers = [$logger]; return $this; @@ -33,12 +33,12 @@ class MonologErrorHandler implements ErrorHandler /** * Get the first registered PSR-3 logger to send errors & exceptions to * - * @deprecated 4.4.0:5.0.0 Use getHandlers() instead + * @deprecated 4.4.0:5.0.0 Use getLoggers() instead * @return LoggerInterface */ public function getLogger() { - Deprecation::notice('4.4.0', 'Please use getHandlers() instead'); + Deprecation::notice('4.4.0', 'Please use getLoggers() instead'); return reset($this->loggers); }