Is there a possibility to skip a rule based on class attribute? #8694
|
Hello! Have a good day! |
Answered by
TomasVotruba
Jun 26, 2024
Replies: 2 comments 14 replies
|
Why you skip it? is there error when using the rule? |
8 replies
|
I've a similar use case: I would like to skip The background is, that those classes are value objects mapping json payloads, which are partial. So the only way I can still know if a property was present in the json is by checking if the property was set. With rector setting nullable properties to |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see. In that case it's better to use the skip feature suggested by @samsonasik
I do this for some other rules, that I personally don't like in entities:
This is the best and easiest way I can think of 👍