-
-
Notifications
You must be signed in to change notification settings - Fork 947
float template bound type support #5331
Copy link
Copy link
Closed
Labels
Milestone
Description
Bug report
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.
Reactions are currently unavailable