-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CS: correct annotation types to use symbols specified in the CS rules #2999
Conversation
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.
Thank you @carusogabriel! Please see a couple alignment issues in comments.
lib/Doctrine/DBAL/Connection.php
Outdated
@@ -356,7 +356,7 @@ public function getExpressionBuilder() | |||
/** | |||
* Establishes the connection with the database. | |||
* | |||
* @return boolean TRUE if the connection was successfully established, FALSE if | |||
* @return bool TRUE if the connection was successfully established, FALSE if | |||
* the connection is already open. |
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 one should be also moved 3 chars left.
* @param integer|boolean $startPos Position to start at, beginning of string by default. | ||
* @param string $str Literal string. | ||
* @param string $substr Literal string to find. | ||
* @param int|bool $startPos Position to start at, beginning of string by default. |
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.
Please fix alignment.
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.
I'm getting an error locally:
FILE: lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
858 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
And is not allow me to commit 😥
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.
You should un-indent the $str and $substr params.
🚢 (CI failure is a timeout in @travis-ci setting up the services) |
As requested by @morozov in #2996