Releases: arxeiss/php-coding-standards
Releases · arxeiss/php-coding-standards
v0.12.0
Full Changelog: v0.11.0...v0.12.0
Added rules:
- SlevomatCodingStandard.Classes.EnumCaseSpacing
- SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch
- SlevomatCodingStandard.Classes.RequireSelfReference
- SlevomatCodingStandard.Commenting.AnnotationName
- SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator
- SlevomatCodingStandard.Strings.DisallowVariableParsing
- SlevomatCodingStandard.Variables.DisallowVariableVariable
v0.11.0
v0.10.0
Full Changelog: v0.9.0...v0.10.0
Requires Slevomat coding standards 8.3 or higher. Which supports PHP 7.2+, support for PHP 7.1 is removed.
Added rules:
- SlevomatCodingStandard.Classes.BackedEnumTypeSpacing
- SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
Added strict rules:
- SlevomatCodingStandard.Classes.ClassLength
- SlevomatCodingStandard.Files.FileLength
Improved strict rules:
- SlevomatCodingStandard.Classes.PropertyDeclaration - set
checkPromoted
&enableMultipleSpacesBetweenModifiersCheck
to true
Renamed rules:
- SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing into SlevomatCodingStandard.Classes.PropertyDeclaration
See more changes in Slevomat changelog: https://github.com/slevomat/coding-standard/releases/tag/8.0.0
v0.9.0
Full Changelog: v0.8.0...v0.9.0
Added rules:
- Generic.CodeAnalysis.JumbledIncrementer
- Generic.Functions.CallTimePassByReference
- Generic.PHP.BacktickOperator
- Generic.PHP.DiscourageGoto
- Generic.VersionControl.GitMergeConflict
- SlevomatCodingStandard.Classes.ClassConstantVisibility
- SlevomatCodingStandard.Functions.UselessParameterDefaultValue
Added strict rules:
- Generic.CodeAnalysis.ForLoopWithTestFunctionCall - By default produce only a Warning
New rules from v7 of Slevomat rules
v0.8.0 Add more into sample
Add support for PHP 8
v0.7.1 Add PHP 8 support
v0.7.0
Requires Slevomat coding standards 6.4 or higher
Added rules:
- SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration
- SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition
- SlevomatCodingStandard.Functions.RequireMultiLineCall
Added strict rules:
- SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition
- SlevomatCodingStandard.Functions.RequireSingleLineCall
Removed rule:
- SlevomatCodingStandard.Classes.UnusedPrivateElements - Is deprecated
v0.6.1
v0.6.0
Requires Slevomat coding standards 6.3 or higher
Added rules:
- Generic.Files.InlineHTML
- Generic.NamingConventions.ConstructorName
- PEAR.Formatting.MultiLineAssignment
- SlevomatCodingStandard.Classes.UnusedPrivateElements
- SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch
- SlevomatCodingStandard.ControlStructures.NewWithParentheses
- SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator
- SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator
- SlevomatCodingStandard.Operators.SpreadOperatorSpacing
- SlevomatCodingStandard.PHP.ReferenceSpacing
- SlevomatCodingStandard.PHP.UselessSemicolon
- SlevomatCodingStandard.PHP.UselessParentheses
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable
Added strict rules:
- Generic.Formatting.SpaceAfterNot
- SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation
- SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace
- SlevomatCodingStandard.Commenting.ForbiddenAnnotations
- SlevomatCodingStandard.ControlStructures.AssignmentInCondition
- SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator
- SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn
- SlevomatCodingStandard.ControlStructures.UselessTernaryOperator
- SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition
- Squiz.PHP.CommentedOutCode
v0.5.0
Requires Slevomat coding standards 6.2 or higher
Added rules:
- SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition
- SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition
- SlevomatCodingStandard.Functions.ArrowFunctionDeclaration
- SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall
- SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable
- SlevomatCodingStandard.Whitespaces.DuplicateSpaces