Skip to content

Commit

Permalink
[StatisticsListener] Fixed PHP Error (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Oct 5, 2019
1 parent 86899bf commit 0f28ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/phing/listener/statistics/TimerMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ public function get($name)

public function find($name, Clock $clock)
{
$timer = $this->map[$name];
$timer = $this->map[$name] ?? null;
if ($timer === null) {
$timer = $this->createTimer($name, $clock);
$this->map[$name] = $timer;
}

return $timer;
}

Expand Down

0 comments on commit 0f28ca3

Please sign in to comment.