given a class, that defines multiple constants with the same prefix. with PHPStan it is possible to declare e.g. a parameter in the following way: ``` use Symfony\Component\HttpFoundation\Request; /** * @param Request::METHOD_* $httpMethod */ public function foo(string $httpMethod): void ``` so every value of a constant of the Request class that starts with `METHOD_` is allowed. TypePHP is currently failing with > Argument $httpMethod must be literal Symfony\Component\HttpFoundation\Request::METHOD_*, string 'POST' given
Activity
rcalicdan commentedon Aug 12, 2026
@mitelg Thank you already fixed at #23 , you can update the typephp version to 0.3.2
cheers..