Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php /** @param callable(string,int): void $callable */ function takesCallable(callable $callable): void { $callable('foo', 0); } takesCallable( static function (string $foo, int $bar) { if ($foo === '') { throw new RuntimeException(); } } );
Snippet created on June 12 2022 at 18:34 UTC
Settings
Get link