Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php interface I { /** * @return (func_num_args() is 2 ? int : string) */ public function f(mixed ...$args); } function (I $i): void { /** @psalm-trace $_one */ $_one = $i->f(1); /** @psalm-trace $_two */ $_two = $i->f(1, 2); };
Snippet created on December 30 2021 at 20:14 UTC
Settings
Get link