Skip to content

Commit 0553b8a

Browse files
committed
PHP 5.3 compat
1 parent a09f814 commit 0553b8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Webhook.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class Webhook
1212
{
13-
private static $eventSubscriptions = [];
13+
private static $eventSubscriptions = array();
1414
private static $receivedWebhook = false;
1515

1616
/**
@@ -21,7 +21,7 @@ class Webhook
2121
*/
2222
public static function subscribe($event, callable $callback)
2323
{
24-
if (!isset(self::$eventSubscriptions[$event])) self::$eventSubscriptions[$event] = [];
24+
if (!isset(self::$eventSubscriptions[$event])) self::$eventSubscriptions[$event] = array();
2525
self::$eventSubscriptions[$event][] = $callback;
2626

2727
self::receive();
@@ -81,7 +81,7 @@ private static function dispatchWebhookEvent($event, $data)
8181
$callback($data);
8282
}
8383
// reset subscriptions
84-
self::$eventSubscriptions[$event] = [];
84+
self::$eventSubscriptions[$event] = array();
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)