From 6036a1c5e6ca1db7da4893740261d73bb87ab610 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Sat, 29 Apr 2023 21:06:42 -0400 Subject: [PATCH] Micro-optimization for pushing events into the queue --- src/EventManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventManager.php b/src/EventManager.php index d86d02a..6ae3842 100644 --- a/src/EventManager.php +++ b/src/EventManager.php @@ -188,7 +188,7 @@ public function initialize_listeners() { */ public function push( Event $event ) { do_action( 'nfd_event_log', $event->key, $event ); - array_push( $this->queue, $event ); + $this->queue[] = $event; } /**