Transition to spl_object_id()

This commit is contained in:
Dylan K. Taylor
2019-01-26 15:06:38 +00:00
parent 1e708db26c
commit d378371cc8
15 changed files with 59 additions and 59 deletions

View File

@ -29,7 +29,7 @@ use function count;
use function fwrite;
use function microtime;
use function round;
use function spl_object_hash;
use function spl_object_id;
use const PHP_EOL;
class TimingsHandler{
@ -154,7 +154,7 @@ class TimingsHandler{
$this->name = $name;
$this->parent = $parent;
self::$HANDLERS[spl_object_hash($this)] = $this;
self::$HANDLERS[spl_object_id($this)] = $this;
}
public function startTiming(){
@ -195,6 +195,6 @@ class TimingsHandler{
}
public function remove(){
unset(self::$HANDLERS[spl_object_hash($this)]);
unset(self::$HANDLERS[spl_object_id($this)]);
}
}