Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Releases: libero/php-coding-standard

v0.5.0

30 May 11:59
4c60cea

Choose a tag to compare

v0.5.0 Pre-release
Pre-release
  • Arrays must be created before being used. (#48)
  • Late-static binding must not be used for constants and in final classes. (#49)
  • Closures must be declared as static when not referencing $this. (#51)
  • Improve use of ternary expressions. (#50)
  • Shorthand types must be used. (#52)
  • Trailing comma is required in multi-line arrays. (#53)
  • Final methods must not be used in final classes. (#54)
  • Semicolons must not be used unnecessarily. (#55)

v0.4.0

19 Feb 09:59
0db1bcf

Choose a tag to compare

v0.4.0 Pre-release
Pre-release
  • PHP files must only contain PHP. (#24)
  • Functions, methods and closures must not have unnecessary whitespace. (#30)
  • Parentheses must not be used unnecessarily. (#39)
  • Comments must be meaningful and aligned. (#35)
  • No spacing after spread/splat operator. (#45)
  • Trait suffix must not be used. (#44)
  • Generic types must be used (eg array<string> not string[]). (#43)
  • Statements must not be empty, except catch blocks. (#34)
  • Comment annotations must be grouped. (#46)
  • Inline doc comments must be valid. (#47)

v0.3.1

07 Jan 15:11
5565299

Choose a tag to compare

v0.3.1 Pre-release
Pre-release
  • Allow PHP_CodeSniffer Standards Composer Installer Plugin v0.5. (#36)

v0.3.0

15 Nov 08:13
0bba285

Choose a tag to compare

v0.3.0 Pre-release
Pre-release
  • Nullable types must be used. (#19)
  • Strict comparisons must be used. (#20)
  • Backticks must not be used. (#21)
  • Functions must not be nested. (#23)
  • Shorthand cast operators must be used. (#27)
  • Single space after type casting and none inside. (#27)
  • Short arrays/list must be used. (#28)
  • Combined assignment operators must be used. (#22)
  • Use single-quoted strings where possible. (#31)

v0.2.1

12 Oct 18:50
6bfa0b2

Choose a tag to compare

v0.2.1 Pre-release
Pre-release
  • Take annotations into account when determining if a use statement is actually used. (#25)

v0.2.0

02 Oct 13:26
80dd646

Choose a tag to compare

v0.2.0 Pre-release
Pre-release
  • use statements must be actually used. (#5)
  • use statements must be ordered alphabetically. (#6)
  • The strict_types directive must be used. (#8)
  • Class and interface constants must have visibility declared. (#10)
  • The null coalesce operator must be used when possible. (#15)
  • Primitive types must be in lower case. (#13)
  • Abstract prefixes, and Exception and Interface suffixes must not be used. (#11)
  • Multi-line method chaining is allowed. (#7)
  • use statements must be used everywhere. (#14)

v0.1.1

24 Sep 15:08
c70c6ee

Choose a tag to compare

v0.1.1 Pre-release
Pre-release
  • use function and use const statements should be separated. (#9)

v0.1.0

13 Sep 12:31
0e12fde

Choose a tag to compare

v0.1.0 Pre-release
Pre-release
  • Adhere to PSR-1.(#1)
  • Adhere to PSR-2. (#2)