Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php class WebsiteStatusWorkflow { public function handler(): void { } } final class WorkflowStub { /** * @template T of object * * @param class-string<T>|non-empty-string $type * * @return ($type is class-string ? T : string) * * @psalm-suppress InvalidReturnType */ public static function workflow( string $type, ): mixed {} } $obj = WorkflowStub::workflow(WebsiteStatusWorkflow::class); /** @psalm-trace $obj */ $obj->handler2();
Issues
Types
idle
Saved Apr 27 2024 21:00 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue