Added __invoke() to SignalTrap and fixed phpunit xml

This commit is contained in:
2020-06-06 23:00:48 +02:00
parent e8c4a85486
commit c855f92ecd
3 changed files with 16 additions and 4 deletions
+6 -1
View File
@@ -45,4 +45,9 @@ class SignalTrap
return false;
}
}
public function __invoke($reset=true):bool
{
return $this->isTrapped($reset);
}
}