Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
slince committed Oct 8, 2023
1 parent 712174d commit ec3f998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CurrentProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public function pid(): int
* Registers a callback for some signals.
*
* @param array|int $signals a signal or an array of signals
* @param callable $callback
* @param callable|int $handler
* @param bool $restartSysCalls
*/
public function signal(array|int $signals, callable $callback, bool $restartSysCalls = true): void
public function signal(array|int $signals, callable|int $handler, bool $restartSysCalls = true): void
{
foreach ((array)$signals as $signal) {
pcntl_signal($signal, $callback, $restartSysCalls);
pcntl_signal($signal, $handler, $restartSysCalls);
}
}

Expand Down

0 comments on commit ec3f998

Please sign in to comment.