Releases: Swivl/php-coding-standard
Releases · Swivl/php-coding-standard
v1.4.1
What's new:
- FunctionCommentSniff: sync with upstream to fix attributes support
v1.4.0
What's new:
- DoctrineEntitySniff: support Doctrine ORM 2.9+ PHP 8 attributes
- DoctrineEntitySniff: support multi-line attributes and self reference
v1.3.0
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
What's new:
- DoctrineEntitySniff: add generics support for Collections
v1.2.0
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
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
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
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
What's new:
- Allow
self
return type for entities
- Allow nullable setter argument type or default null value