Bug report
Based on this older issue: #7234 I'm trying to figure out how to tell PHPStan that if no arguments are passed into a function/method that accepts variadic arguments to conditionally return different types, but PHPStan cannot resolve the template type (Unable to resolve the template type T in call to function environment) in this situation because I'm not passing anything.
Code snippet that reproduces the problem
https://phpstan.org/r/f2ec62b8-2a06-4578-94d7-e063a76b5b3d
Expected output
I'd like be able to call a function/method that has variadic arguments without actually passing any arguments and be able to conditionally return a type based on that situation.
Did PHPStan help you today? Did it make you happy in any way?
😄
Bug report
Based on this older issue: #7234 I'm trying to figure out how to tell PHPStan that if no arguments are passed into a function/method that accepts variadic arguments to conditionally return different types, but PHPStan cannot resolve the template type (Unable to resolve the template type T in call to function environment) in this situation because I'm not passing anything.
Code snippet that reproduces the problem
https://phpstan.org/r/f2ec62b8-2a06-4578-94d7-e063a76b5b3d
Expected output
I'd like be able to call a function/method that has variadic arguments without actually passing any arguments and be able to conditionally return a type based on that situation.
Did PHPStan help you today? Did it make you happy in any way?
😄