Replies: 2 comments 1 reply
-
Any updates here? Is there a way to ignore some parts of a file? For example, when using a custom validation rule, it requires calling it without parentheses: As you may see with phpcs it's possible to ignore the line, what to do with Pint (if I don't want to disable this rule globally)? |
Beta Was this translation helpful? Give feedback.
-
@martinbean Yes, right you are. I knew that a custom validation rule should be just an instance of a class but it was not working for me (with parentheses) for an unknown reason. But I tried again and now it works, so I had something else that time. But anyway, even if my example was not correct, the idea of ignoring a single line/method/class sounds very natural, isn't? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to ignore lines in Laravel Pint? Like
// @PhpCsFixer::ignore{"lowercase_static_reference"}
...Beta Was this translation helpful? Give feedback.
All reactions