-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CheckStyle in Voters cookbook #6674
Conversation
@@ -147,10 +147,10 @@ would look like this:: | |||
} | |||
|
|||
// you know $subject is a Post object, thanks to supports | |||
/** @var Post $post */ | |||
/* @var Post $post */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change has to be reverted. Seems like a bug in PHP CS Fixer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change made by phpdoc_to_comment fixer (Symfony level)
Docblocks should only be used on structural elements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that rule isn't used by Symfony. Please disable that fixer :)
The other change is correct, let's merge 👍 |
File changed |
Status: Reviewed |
👍 |
Thanks @JakeFr! I've merged your PR in the 2.7 version of the docs (the oldest version we still maintain) and I'll merge it up to the 3.2 docs from there. |
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6674). Discussion ---------- CheckStyle in Voters cookbook Hello! Apply fixes done by php-cs-fixer (Symfony level) after copy/paste this code sample in a project Commits ------- 9c5a0ba CheckStyle in Voters cookbook
Hello!
Apply fixes done by php-cs-fixer (Symfony level) after copy/paste this code sample in a project