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 TWorkflow of object * @template TParam of class-string<TWorkflow>|non-empty-string * * @param TParam $type * * @return (TParam is class-string ? TWorkflow : 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 20:41 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue