We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following class generates SlevomatCodingStandard.Classes.PropertyDeclaration.NoSpaceBeforeNullabilitySymbol for array.
SlevomatCodingStandard.Classes.PropertyDeclaration.NoSpaceBeforeNullabilitySymbol
array
abstract class Test { abstract public function begin(): static; protected array $field = []; }
The issue does not appear when the return type is self.
self
I'm running v8.15.0.
The text was updated successfully, but these errors were encountered:
Just found that this case also generates SlevomatCodingStandard.Classes.PropertyDeclaration.MultipleSpacesBeforeTypeHint for the static return type.
SlevomatCodingStandard.Classes.PropertyDeclaration.MultipleSpacesBeforeTypeHint
static
class Test { public static function begin(): static { return new static(); } /** @var array<string,mixed> */ protected array $field = []; final private function __construct() { } }
Sorry, something went wrong.
No branches or pull requests
The following class generates
SlevomatCodingStandard.Classes.PropertyDeclaration.NoSpaceBeforeNullabilitySymbol
forarray
.The issue does not appear when the return type is
self
.I'm running v8.15.0.
The text was updated successfully, but these errors were encountered: