Skip to content

coding-standard 1.0.3

Compare
Choose a tag to compare
@michalbundyra michalbundyra released this 28 May 20:20
· 423 commits to master since this release
1.0.3

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #15 PHP\DisallowFqn - fixes importing FQN

  • #16 WhiteSpace\ScopeIndent - fixes code fixer for the case when boolean operator is at the end of the line

  • #17 fixes recognising types in @method PHPDoc tag. Fixes the following sniffs:

    • Namespaces\UnusedUseStatement - imported classes/interfaces are not removed when used within the tag,
    • PHP\CorrectClassNameCase - fixes caps in class/interface names used within the tag,
    • PHP\DisallowFqn - imports FQN used within the tag.
  • #18 Commenting\DocComment - fixes requiring content straight after doc-block - allows empty line when next content is another doc-block

  • #19 Commenting\DocComment - fixes issue with doc-block after colon (for example in switch statement) - empty line is no longer required before doc-block in that case

  • #20 Functions\ReturnType - fixes false-positive error when function may return $this

  • #21 fixes regular expression to check class name (type). Fixes the following sniffs:

    • Commenting\TagWithType - types in doc-block comments,
    • Functions\Param - param typehint and type within @param tag,
    • Functions\ReturnType - return type declaration and type within @return tag.
  • #22 fixes recognising parameter types and return type declaration with PHPDocs tags. Affects the following sniffs:

    • Functions\Param - param typehint and type within @param tag,
    • Functions\ReturnType - return type declaration and type within @return tag.
  • #23 Functions\ReturnType - fixes recognising yoda comparison in return statement and type of returned value

  • #24 fixes error in fixer when recognised type was invalid. Affects the following sniffs:

    • PHP\CorrectClassNameCase
    • PHP\DisallowFqn
  • #25 fixes type suggestions, allows self and parent to be used as specification for complex types (like object or class/interface)

  • #26 Commenting\DocComment fixes indents detection before closing brackets in doc-block comments

  • #27 Commenting\TagWithType fixes ordering types in PHPDoc tags

  • #28 WhiteSpace\ScopeIndent fixes false-positive