From d4a8df73d324c53e8f035d22647fa1f40eb00d5b Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Fri, 15 Sep 2023 12:34:50 +1000 Subject: [PATCH] Rename variable --- src/Illuminate/Foundation/Exceptions/Handler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 3b439655e991..124fde9d757c 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -121,11 +121,11 @@ class Handler implements ExceptionHandlerContract ]; /** - * Indicates that exception reporting should be deduplicated. + * Indicates that an exception instance should only be reported once. * * @var bool */ - protected $deduplicateReporting = false; + protected $withoutDuplicates = false; /** * The already reported exception map. @@ -326,7 +326,7 @@ public function shouldReport(Throwable $e) */ protected function shouldntReport(Throwable $e) { - if ($this->deduplicateReporting && ($this->reportedExceptionMap[$e] ?? false)) { + if ($this->withoutDuplicates && ($this->reportedExceptionMap[$e] ?? false)) { return true; } @@ -816,7 +816,7 @@ public function renderForConsole($output, Throwable $e) */ public function dontReportDuplicates() { - $this->deduplicateReporting = true; + $this->withoutDuplicates = true; return $this; }