Skip to content

Commit cb7dc83

Browse files
committed
Fix for PHP 7 fatal error on duplicate parameter names in closures
1 parent ddfadd9 commit cb7dc83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy