-
-
Notifications
You must be signed in to change notification settings - Fork 947
False positive on mixed attribute usage on promoted property #10298
Copy link
Copy link
Closed
Description
Bug report
When mixing both attributes that target parameters and attributes target properties on a promoted property an (incorrect) error will be reported for the attribute targeted at properties, that it isn't targeting properties and parameters.
(Found when mixing #[SensitiveParameter] with Symfony validator constraints on a promoted property)
Code snippet that reproduces the problem
Expected output
No errors, instead it fails on PropAttr not having property or parameter target
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels