Skip to content

Releases: arxeiss/php-coding-standards

v0.14.1

Choose a tag to compare

@arxeiss arxeiss released this 03 Dec 00:43

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

Removed rules:

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

v0.14.0

Choose a tag to compare

@arxeiss arxeiss released this 03 Dec 00:33

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

Choose a tag to compare

@arxeiss arxeiss released this 18 Mar 22:12

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

Choose a tag to compare

@arxeiss arxeiss released this 14 May 19:35

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

Choose a tag to compare

@arxeiss arxeiss released this 26 Jul 19:06

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

Choose a tag to compare

@arxeiss arxeiss released this 17 Jul 13:19

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

Choose a tag to compare

@arxeiss arxeiss released this 28 Oct 09:06

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

Choose a tag to compare

@arxeiss arxeiss released this 13 May 17:16
v0.8.0

Add more into sample

Add support for PHP 8

Choose a tag to compare

@arxeiss arxeiss released this 11 May 14:53
v0.7.1

Add PHP 8 support

v0.7.0

Choose a tag to compare

@arxeiss arxeiss released this 07 Sep 17:54

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