-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Strict rules for cs fixer #75
Strict rules for cs fixer #75
Conversation
Revert src/Test/Proto
Revert src/Test/Proto
string $content, | ||
string $expectedResponsePrefix, | ||
): void { | ||
if ($content !== '') { | ||
\socket_write($socket, $content); | ||
// print green "hello" string in raw console markup | ||
$output->write( | ||
'> ' . \str_replace(["\r", "\n"], ["\e[32m\\r\e[0m", "\e[32m\\n\e[0m"], $content), |
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.
The previous linter added spaces here. Now this removes ones :D
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.
Per 2 rule adds spaces, PhpCsFixer rule removes, which is better?
/** | ||
* @var int<1, 65535> | ||
*/ |
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.
Is it possible to allow inline type hint for class properties?
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.
Only hint that duplicate class properties are removed.
* @param positive-int $possibleBytes Maximum number of bytes to read. If the read fragment is longer than this | ||
* an exception will be thrown. Default is 10MB | ||
* an exception will be thrown. Default is 10MB | ||
* |
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.
We align comments with the word @param
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 rule cannot be changed, only left or vertical
Thank you. You helped compile the |
No description provided.