Skip to content

Commit

Permalink
Just cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn authored and TimothyBJacobs committed Jan 25, 2024
1 parent a06f8f4 commit b13d0eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Telemetry/Events/Event_Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

0 comments on commit b13d0eb

Please sign in to comment.