8000 Fix for PHP 7 fatal error on duplicate parameter names in closures · reactphp/event-loop@780d147 · GitHub
[go: up one dir, main page]

Skip to content

Commit 780d147

Browse files
ondrejmirtescebe
authored andcommitted
Fix for PHP 7 fatal error on duplicate parameter names in closures
1 parent acc8171 commit 780d147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ExtEventLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private function unsubscribeStreamEvent($stream, $flag)
294294
*/
295295
private function createTimerCallback()
296296
{
297-
$this->timerCallback = function ($_, $_, $timer) {
297+
$this->timerCallback = function ($_, $__, $timer) {
298298
call_user_func($timer->getCallback(), $timer);
299299

300300
if (!$timer->isPeriodic() && $this->isTimerActive($timer)) {

src/LibEventLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private function unsubscribeStreamEvent($stream, $flag)
298298
*/
299299
private function createTimerCallback()
300300
{
301-
$this->timerCallback = function ($_, $_, $timer) {
301+
$this->timerCallback = function ($_, $__, $timer) {
302302
call_user_func($timer->getCallback(), $timer);
303303

304304
// Timer already cancelled ...

0 commit comments

Comments
 (0)
0