Merge commit 'd83820477fe905a85a4d1fd11bad1dba211f0f4f'

This commit is contained in:
Dylan K. Taylor 2019-12-25 14:20:38 +00:00
commit 6968a4232e

View File

@ -168,6 +168,9 @@ class TimingsHandler{
public function stopTiming() : void{
if(self::$enabled){
if($this->timingDepth === 0){
throw new \InvalidStateException("Cannot stop a timer that is not running");
}
if(--$this->timingDepth !== 0 or $this->start == 0){
return;
}