summaryrefslogtreecommitdiff
path: root/inc/events.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /inc/events.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'inc/events.php')
-rw-r--r--inc/events.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/events.php b/inc/events.php
index e5a1e036..34c37920 100644
--- a/inc/events.php
+++ b/inc/events.php
@@ -32,7 +32,7 @@ function event_handler($event, $callback) {
global $events;
if (!isset($events[$event]))
- $events[$event] = array();
+ $events[$event] = [];
$events[$event][] = $callback;
}
@@ -40,6 +40,6 @@ function event_handler($event, $callback) {
function reset_events() {
global $events;
- $events = array();
+ $events = [];
}