Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
remove old support
Browse files Browse the repository at this point in the history
  • Loading branch information
prophet777 committed Jul 8, 2015
1 parent 365d833 commit a972d9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
],
"require": {
"php": ">=5.3",
"evenement/evenement" : "~1.0|~2.0",
"react/event-loop": "~0.3.0|~0.4.0"
"evenement/evenement" : "~2.0",
"react/event-loop": "~0.4.0"
},
"autoload": {
"psr-4": { "Gos\\Component\\PnctlEventLoopEmitter\\": "src/" }
Expand Down
3 changes: 2 additions & 1 deletion src/PnctlEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ public function __construct(LoopInterface $loop, $interval = 0.1)
* @param int $signo
* @param callable $listener
*/
public function on($signo, $listener)
public function on($signo, callable $listener)
{
pcntl_signal($signo, array($this, 'emit'));
parent::on($signo, $listener);
}


public function __invoke()
{
pcntl_signal_dispatch();
Expand Down

0 comments on commit a972d9c

Please sign in to comment.