MCPcopy Create free account
hub / github.com/Rello/analytics / dispatchTyped

Function dispatchTyped

tests/integration/share-audit.php:32–37  ·  view source on GitHub ↗
(Event $event)

Source from the content-addressed store, hash-verified

30 public function hasListeners(string $eventName): bool { return false; }
31 public function dispatch(string $eventName, Event $event): void { $this->dispatchTyped($event); }
32 public function dispatchTyped(Event $event): void {
33 if (!$event instanceof CriticalActionPerformedEvent) {
34 throw new RuntimeException('Unexpected audit event type');
35 }
36 $this->events[] = $event;
37 }
38};
39$checks = 0;
40$check = static function (bool $condition, string $message) use (&$checks): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected