You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classHelloWorld
{
/** * @template A of int * @template B of float * @template C of number * @template D of int|float * @return C */publicfunctionminifs()
{
}
}
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.
The text was updated successfully, but these errors were encountered:
Bug report
https://phpstan.org/r/f68251de-0b7c-48fb-b174-549b2bd0a933
IMO, this looks like a bug – PHPStan understands the bound type but still complains that it isn't supported.
The text was updated successfully, but these errors were encountered: