Skip to content

Commit

Permalink
Let EvLoop::defaultLoop() return an EvLoop instance
Browse files Browse the repository at this point in the history
Currently: 'void' method 'defaultLoop' result used.

According to the documentation it either returns the default loop, or creates + returns it.
  • Loading branch information
sandacode authored and isfedorov committed Mar 15, 2024
1 parent cf2eb62 commit f98f62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Ev/Ev.php
Original file line number Diff line number Diff line change
Expand Up @@ -1576,11 +1576,12 @@ public function verify() {}
* @param mixed $data
* @param float $io_interval
* @param float $timeout_interval
* @return EvLoop
*/
public static function defaultLoop(
int $flags = Ev::FLAG_AUTO,
mixed $data = null,
float $io_interval = 0.0,
float $timeout_interval = 0.0
) {}
): EvLoop {}
}

0 comments on commit f98f62e

Please sign in to comment.