🔧
This commit is contained in:
@@ -27,7 +27,7 @@ class SignalMap
|
||||
if (!isset(self::$map)) {
|
||||
$r = new \ReflectionExtension('pcntl');
|
||||
$c = $r->getConstants();
|
||||
$map = array_filter($c, fn ($k) => str_starts_with($k, 'SIG') && !str_starts_with($k, 'SIG_'), \ARRAY_FILTER_USE_KEY);
|
||||
$map = array_filter($c, fn ($k) => str_starts_with($k, 'SIG') && !str_starts_with($k, 'SIG_') && 'SIGBABY' !== $k, \ARRAY_FILTER_USE_KEY);
|
||||
self::$map = array_flip($map);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user