Bug report
With a setup like this:
#[AsCommand(name: self::NAME)]
final class FooCommand extends Command
{
public const NAME = 'foo';
}
I'm getting:
Parameter $name of attribute class Symfony\Component\Console\Attribute\AsCommand constructor expects string, mixed given.
This only happens when checkImplicitMixed is enabled; therefore I can't reproduce it in the playground.
Code snippet that reproduces the problem
No response
Expected output
No error message.
Did PHPStan help you today? Did it make you happy in any way?
Sure! :-)
Bug report
With a setup like this:
I'm getting:
This only happens when
checkImplicitMixedis enabled; therefore I can't reproduce it in the playground.Code snippet that reproduces the problem
No response
Expected output
No error message.
Did PHPStan help you today? Did it make you happy in any way?
Sure! :-)