Skip to content

Commit c091302

Browse files
authored
Rename variable (#48413)
1 parent 13de6a0 commit c091302

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Foundation/Exceptions/Handler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ class Handler implements ExceptionHandlerContract
121121
];
122122

123123
/**
124-
* Indicates that exception reporting should be deduplicated.
124+
* Indicates that an exception instance should only be reported once.
125125
*
126126
* @var bool
127127
*/
128-
protected $deduplicateReporting = false;
128+
protected $withoutDuplicates = false;
129129

130130
/**
131131
* The already reported exception map.
@@ -326,7 +326,7 @@ public function shouldReport(Throwable $e)
326326
*/
327327
protected function shouldntReport(Throwable $e)
328328
{
329-
if ($this->deduplicateReporting && ($this->reportedExceptionMap[$e] ?? false)) {
329+
if ($this->withoutDuplicates && ($this->reportedExceptionMap[$e] ?? false)) {
330330
return true;
331331
}
332332

@@ -816,7 +816,7 @@ public function renderForConsole($output, Throwable $e)
816816
*/
817817
public function dontReportDuplicates()
818818
{
819-
$this->deduplicateReporting = true;
819+
$this->withoutDuplicates = true;
820820

821821
return $this;
822822
}

0 commit comments

Comments
 (0)