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 T of Event * @param string|class-string<T> $_c * @param (T is \Psalm\Type\Atomic\TGenericObject ? class-string<EventListener<T>> : class-string<EventListener>) $_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 07:57 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue