-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Labels
Milestone
Description
Bug report
https://phpstan.org/r/f68251de-0b7c-48fb-b174-549b2bd0a933
class HelloWorld
{
/**
* @template A of int
* @template B of float
* @template C of number
* @template D of int|float
* @return C
*/
public function minifs()
{
}
}- B, C and D = bound type float is not supported
- Method HelloWorld::minifs() should return C of float|int but return statement is missing
IMO, this looks like a bug – PHPStan understands the bound type but still complains that it isn't supported.