Bug report
Version affected: 1.10.51 with bleeding edge
Given an attribute with property target
When the attribute is applied to a promoted property
Then PHPStan reports the attribute does not have parameter target
It seems PHPStan doesn't recognise the attribute is applied to a promoted property but instead it thinks it's function parameter.
Code snippet that reproduces the problem
https://phpstan.org/r/b407f06b-e3c6-419a-9d32-aca23a616fef
Expected output
PHPStan should not report any issues.
Did PHPStan help you today? Did it make you happy in any way?
No response