Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php class Event {} /** @template T of Event */ class EventListener {} class EventListenerUntyped extends EventListener {} class EventTyped extends Event {} /** @extends EventListener<EventTyped> */ class EventListenerTyped extends EventListener {} /** * @template T2 of Event * @param string|class-string<T2> $_c * @param class-string<EventListener<T2>> $_i */ function register(string $_c, string $_i): void {} register('foo', EventListenerUntyped::class); register(Event::class, EventListenerUntyped::class); register(EventTyped::class, EventListenerTyped::class);
Issues
Types
idle
Saved Aug 17 2021 11:03 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue