From b13d0eb26b060a6642bd7939a68c8ace8890389f Mon Sep 17 00:00:00 2001 From: Stephen Page Date: Thu, 9 Nov 2023 11:31:24 -0500 Subject: [PATCH] Just cast --- src/Telemetry/Events/Event_Subscriber.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Telemetry/Events/Event_Subscriber.php b/src/Telemetry/Events/Event_Subscriber.php index 1f702eb..d1d81e9 100644 --- a/src/Telemetry/Events/Event_Subscriber.php +++ b/src/Telemetry/Events/Event_Subscriber.php @@ -106,10 +106,6 @@ public function send_events() { return; } - if ( ! is_array( $events ) ) { - $events = (array) $events; - } - - $this->container->get( Event::class )->send_batch( $events ); + $this->container->get( Event::class )->send_batch( (array) $events ); } }