Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php static function () : void { $method = new ReflectionMethod(stdClass::class); $parameters = $method->getParameters(); foreach ($parameters as $parameter) { if (!$parameter->hasType()) { throw new RuntimeException('No type found.'); } echo($parameter->getType()->__toString()); } };
Snippet created on February 20 2021 at 21:27 UTC
Settings
Get link