mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Transition to spl_object_id()
This commit is contained in:
@ -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)]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user