Skip to content

Releases: arxeiss/php-coding-standards

v0.14.1

03 Dec 00:43

Choose a tag to compare

Full Changelog: v0.14.0...v0.14.1

Removed rules:

  • PSR12.Files.FileHeader - conflicts with SlevomatCodingStandard.Namespaces.UseSpacing

v0.14.0

03 Dec 00:33

Choose a tag to compare

Full Changelog: v0.13.0...v0.14.0

Added rules:

  • SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator

Removed rules:

  • Generic.Functions.CallTimePassByReference - was removed in PHPCS 4.0
  • Generic.Formatting.NoSpaceAfterCast - was removed in PHPCS 4.0

v0.13.0

18 Mar 22:12

Choose a tag to compare

Full Changelog: v0.12.0...v0.13.0

Added rules:

  • SlevomatCodingStandard.Functions.NamedArgumentSpacing

Added Strict rules:

  • SlevomatCodingStandard.TypeHints.ClassConstantTypeHint
  • SlevomatCodingStandard.TypeHints.DNFTypeHintFormat (Replacing deprecated SlevomatCodingStandard.TypeHints.UnionTypeHintFormat)

Others:

  • Minimum PHP version is 7.4

v0.12.0

14 May 19:35

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

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

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

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

Choose a tag to compare

v0.8.0

Add more into sample

Add support for PHP 8

11 May 14:53

Choose a tag to compare

v0.7.1

Add PHP 8 support

v0.7.0

07 Sep 17:54

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