(Event $event)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected