Skip to content

Releases: arxeiss/php-coding-standards

v0.12.0

14 May 19:35
Compare
Choose a tag to compare

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

26 Jul 19:06
Compare
Choose a tag to compare

Breaking changes

In the following rules the enableMixedTypeHint is disabled.
See explanation and details here: #6

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint
  • SlevomatCodingStandard.TypeHints.PropertyTypeHint
  • SlevomatCodingStandard.TypeHints.ReturnTypeHint

v0.10.0

17 Jul 13:19
Compare
Choose a tag to compare

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

28 Oct 09:06
Compare
Choose a tag to compare

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

13 May 17:16
Compare
Choose a tag to compare
v0.8.0

Add more into sample

Add support for PHP 8

11 May 14:53
Compare
Choose a tag to compare
v0.7.1

Add PHP 8 support

v0.7.0

07 Sep 17:54
Compare
Choose a tag to compare

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

20 Apr 14:12
Compare
Choose a tag to compare
  • Fix typo in phpcs-slevomat.xml file
  • Requires higher Slevomat coding standards with fixed bugs

v0.6.0

20 Apr 11:26
Compare
Choose a tag to compare

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

31 Mar 19:55
Compare
Choose a tag to compare

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