Skip to content

Releases: Swivl/php-coding-standard

v1.4.1

06 Jan 19:19
v1.4.1
cd30e62
Compare
Choose a tag to compare

What's new:

  • FunctionCommentSniff: sync with upstream to fix attributes support

v1.4.0

05 Jan 10:58
v1.4.0
b51ed0d
Compare
Choose a tag to compare

What's new:

  • DoctrineEntitySniff: support Doctrine ORM 2.9+ PHP 8 attributes
  • DoctrineEntitySniff: support multi-line attributes and self reference

v1.3.0

06 Jul 16:32
v1.3.0
194ab38
Compare
Choose a tag to compare

What's new:

  • FunctionCommentSniff: require and validate only necessary blocks of param/return/throws
  • Do not require short function comment by default
  • Bump minimum squizlabs/php_codesniffer version to 3.6
  • Exclude extra files from dist

v1.2.1

27 Apr 07:54
v1.2.1
faafdae
Compare
Choose a tag to compare

What's new:

  • DoctrineEntitySniff: add generics support for Collections

v1.2.0

30 Mar 20:15
v1.2.0
28ca723
Compare
Choose a tag to compare

What's new:

  • Add Swivl.Functions.ConstructorPropertyPromotion sniff
  • [BC Break] Add Swivl.Commenting.UselessFunctionComment sniff
  • [BC Break] Add Swivl.Commenting.UselessClassComment sniff
  • Refactor Swivl.Commenting.FunctionComment
  • Fix bug with recognizing nullable traversable type

v1.1.2

21 Mar 18:25
v1.1.2
5a4af65
Compare
Choose a tag to compare

What's new:

  • DoctrineEntity: support native property type and native return type
  • DoctrineEntity: support omitting PHPDoc type for property with native type
  • DoctrineEntity: support static return type
  • DoctrineEntity: support array as any[]
  • DoctrineEntity: support short scalar types
  • DoctrineEntity: support DateTimeImmutable and DateTimeInterface
  • DoctrineEntity: fix issue with using type of the previous property
  • FunctionComment: add __clone to whitelist of methods without return type

v1.1.1

09 Feb 09:40
v1.1.1
7dca684
Compare
Choose a tag to compare

What's new:

  • Allow short scalar types (int, bool) and support PHP 8 mixed types
  • Use latest Generic sniffs
  • Sync MultiLineFunctionDeclarationSniff with parent PEAR
  • Fix DoctrineEntity nullable property type support
  • Move from Travis to Github Actions

v1.1.0

27 Jan 10:16
v1.1.0
446795d
Compare
Choose a tag to compare

What's new:

  • [BC Break] Optional join in entities relationships
  • [BC Break] PHPDoc for methods is required only for traversable types
  • [BC Break] Do not require PHPDoc for classes by default

v1.0.1

27 May 09:34
v1.0.1
Compare
Choose a tag to compare

What's new:

  • Allow self return type for entities
  • Allow nullable setter argument type or default null value

v1.0.0

19 Sep 07:15
v1.0.0
62692e8
Compare
Choose a tag to compare

First public release