Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Sep 15, 2023
1 parent b6f4732 commit d4a8df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -816,7 +816,7 @@ public function renderForConsole($output, Throwable $e)
*/
public function dontReportDuplicates()
{
$this->deduplicateReporting = true;
$this->withoutDuplicates = true;

return $this;
}
Expand Down

0 comments on commit d4a8df7

Please sign in to comment.