Skip to content

Commit 98c70e2

Browse files
committed
ICL: Made reserved memory variable protected - SensioLabsInsight notice of unused var.
1 parent 402f765 commit 98c70e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ExceptionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ExceptionHandler extends Handler
1010
private $log;
1111
private $timeStarted;
1212
private $timeFinished;
13-
private static $reservedMemory;
13+
protected $reservedMemory;
1414

1515
public function __construct()
1616
{
@@ -40,10 +40,10 @@ public function report(Exception $e)
4040
private function registerShutdownFunction()
4141
{
4242
$this->timeStarted = microtime(true);
43-
self::$reservedMemory = str_repeat(' ', 20 * 1024);
43+
$this->reservedMemory = str_repeat(' ', 20 * 1024);
4444

4545
register_shutdown_function(function () {
46-
self::$reservedMemory = null;
46+
$this->reservedMemory = null;
4747

4848
$this->timeFinished = microtime(true);
4949
$executionTime = round($this->timeFinished - $this->timeStarted, 3);

0 commit comments

Comments
 (0)