PostgreSQL enhancements for Doctrine. Provides support for advanced data types (json, jssnb, arrays), text search, array operators and jsonb specific functions.
rectorphp/rector (rector/rector)
### [`v1.0.1`](https://togithub.com/rectorphp/rector/releases/tag/1.0.1): Released Rector 1.0.1
[Compare Source](https://togithub.com/rectorphp/rector/compare/1.0.0...1.0.1)
#### New Features :partying_face:
- \[Custom] Add "detect-node" command to help with writing custom rules ([#5576](https://togithub.com/rectorphp/rector-src/pull/5576))
- \[Config] Add registerService() method to allow container extension ([#5591](https://togithub.com/rectorphp/rector-src/pull/5591))
- \[TypeDeclaration] Add AddTestsVoidReturnTypeWhereNoReturnRector ([#5611](https://togithub.com/rectorphp/rector-src/pull/5611))
- \[PHP 8.0] Add always class to AnnotationToAttribute to include string to ::class reference conversion ([#5619](https://togithub.com/rectorphp/rector-src/pull/5619))
- \[CodeQuality] Add StaticToSelfStaticMethodCallOnFinalClassRector ([#5621](https://togithub.com/rectorphp/rector-src/pull/5621))
#### Bugfixes :bug:
- ExplicitBoolCompareRector: skip phpdoc ([#5567](https://togithub.com/rectorphp/rector-src/pull/5567)), Thanks [@staabm](https://togithub.com/staabm)!
- Fix ArrayTypeMapper to handle arrays with UnionType items ([#8225](https://togithub.com/rectorphp/rector/issues/8225)) ([#5568](https://togithub.com/rectorphp/rector-src/pull/5568)), Thanks [@pkvach](https://togithub.com/pkvach)!
- \[Configuration] Fix detect /vendor on root project on vendor analyzed on VendorMissAnalyseGuard ([#5569](https://togithub.com/rectorphp/rector-src/pull/5569))
- Fix missing / suffix on VendorMissAnalyseGuard ([#5571](https://togithub.com/rectorphp/rector-src/pull/5571))
- \[PHP81] Skip after is_string on object call on NullToStrictStringFuncCallArgRector ([#5572](https://togithub.com/rectorphp/rector-src/pull/5572))
- \[Config] Make sure only one of type-declaration/dead-code or with\*Level() is used to avoid duplicates ([#5578](https://togithub.com/rectorphp/rector-src/pull/5578))
- Fix undefined MHASH_\* constant on running downgrade from php 8.0 ([#5585](https://togithub.com/rectorphp/rector-src/pull/5585))
- \[NodeTypeResolver] Ignore PHPStan internal error on PHPStanNodeScopeResolver on NodeScopeResolver::processNodes() ([#5586](https://togithub.com/rectorphp/rector-src/pull/5586))
- \[Php81] Skip possible array on NullToStrictStringFuncCallArgRector ([#5587](https://togithub.com/rectorphp/rector-src/pull/5587))
- \[Php81] Skip another possible cast array to string on NullToStrictStringFuncCallArgRector ([#5589](https://togithub.com/rectorphp/rector-src/pull/5589))
- \[Transform] Allow class const fetch value on rules() on RectorConfigBuilderRector ([#5596](https://togithub.com/rectorphp/rector-src/pull/5596))
- \[Performance] Use strlen() early before loop on VendorMissAnalyseGuard ([#5597](https://togithub.com/rectorphp/rector-src/pull/5597))
- Copy subtype phpdoc on ClassPropertyAssignToConstructorPromotionRector ([#8438](https://togithub.com/rectorphp/rector/issues/8438)) ([#5603](https://togithub.com/rectorphp/rector-src/pull/5603)), Thanks [@pkvach](https://togithub.com/pkvach)!
- config method must be static, to avoid creating rule before loading related ctor services ([#5606](https://togithub.com/rectorphp/rector-src/pull/5606))
- fix config for configured rule (https://github.com/rectorphp/rector-src/commit/5edb023974a55b0efee74dd9fe92b314dd521f2c)
- \[PHP 8.0] Fix annotation to attribute in case of FQN class without () ([#5609](https://togithub.com/rectorphp/rector-src/pull/5609))
- \[Php80] Support windows new line line DoctrineAnnotationDecorator::LONG_ANNOTATION_REGEX ([#5610](https://togithub.com/rectorphp/rector-src/pull/5610))
- \[Php81] Handle after open parentheses on AnnotationToAttributeRector ([#5613](https://togithub.com/rectorphp/rector-src/pull/5613))
- \[BetterPhpDocParser] Move split new line with @\ to regex to support windows new line ([#5615](https://togithub.com/rectorphp/rector-src/pull/5615))
- \[Php81] Handle nested Fqcn UniqueConstraint on NestedAnnotationToAttributeRector ([#5614](https://togithub.com/rectorphp/rector-src/pull/5614))
- \[DX] Accept Y/y for confirmation of init config ([#5616](https://togithub.com/rectorphp/rector-src/pull/5616))
- \[CodeQuality] Skip private static call from static:: on LocallyCalledStaticMethodToNonStaticRector ([#5620](https://togithub.com/rectorphp/rector-src/pull/5620))
- \[PostRector] Skip remove unused imports on used in multiple docs in single node ([#5604](https://togithub.com/rectorphp/rector-src/pull/5604))
- \[DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector ([#5588](https://togithub.com/rectorphp/rector-src/pull/5588))
#### Removed :skull:
- \[DeadCode] Skip with magic \__get() on RemoveUnusedPromotedPropertyRector ([#5573](https://togithub.com/rectorphp/rector-src/pull/5573))
- \[DX] Remove phpstan strict rules to ease contributing ([#5579](https://togithub.com/rectorphp/rector-src/pull/5579))
- \[DX] Remove type covarege, as handled by phpstan itself ([#5583](https://togithub.com/rectorphp/rector-src/pull/5583))
- \[DeadCode] Handle used in assign return on RemoveUnusedPrivatePropertyRector ([#5608](https://togithub.com/rectorphp/rector-src/pull/5608))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.0
->^1.0.1
Release Notes
rectorphp/rector (rector/rector)
### [`v1.0.1`](https://togithub.com/rectorphp/rector/releases/tag/1.0.1): Released Rector 1.0.1 [Compare Source](https://togithub.com/rectorphp/rector/compare/1.0.0...1.0.1) #### New Features :partying_face: - \[Custom] Add "detect-node" command to help with writing custom rules ([#5576](https://togithub.com/rectorphp/rector-src/pull/5576)) - \[Config] Add registerService() method to allow container extension ([#5591](https://togithub.com/rectorphp/rector-src/pull/5591)) - \[TypeDeclaration] Add AddTestsVoidReturnTypeWhereNoReturnRector ([#5611](https://togithub.com/rectorphp/rector-src/pull/5611)) - \[PHP 8.0] Add always class to AnnotationToAttribute to include string to ::class reference conversion ([#5619](https://togithub.com/rectorphp/rector-src/pull/5619)) - \[CodeQuality] Add StaticToSelfStaticMethodCallOnFinalClassRector ([#5621](https://togithub.com/rectorphp/rector-src/pull/5621))#### Bugfixes :bug: - ExplicitBoolCompareRector: skip phpdoc ([#5567](https://togithub.com/rectorphp/rector-src/pull/5567)), Thanks [@staabm](https://togithub.com/staabm)! - Fix ArrayTypeMapper to handle arrays with UnionType items ([#8225](https://togithub.com/rectorphp/rector/issues/8225)) ([#5568](https://togithub.com/rectorphp/rector-src/pull/5568)), Thanks [@pkvach](https://togithub.com/pkvach)! - \[Configuration] Fix detect /vendor on root project on vendor analyzed on VendorMissAnalyseGuard ([#5569](https://togithub.com/rectorphp/rector-src/pull/5569)) - Fix missing / suffix on VendorMissAnalyseGuard ([#5571](https://togithub.com/rectorphp/rector-src/pull/5571)) - \[PHP81] Skip after is_string on object call on NullToStrictStringFuncCallArgRector ([#5572](https://togithub.com/rectorphp/rector-src/pull/5572)) - \[Config] Make sure only one of type-declaration/dead-code or with\*Level() is used to avoid duplicates ([#5578](https://togithub.com/rectorphp/rector-src/pull/5578)) - Fix undefined MHASH_\* constant on running downgrade from php 8.0 ([#5585](https://togithub.com/rectorphp/rector-src/pull/5585)) - \[NodeTypeResolver] Ignore PHPStan internal error on PHPStanNodeScopeResolver on NodeScopeResolver::processNodes() ([#5586](https://togithub.com/rectorphp/rector-src/pull/5586)) - \[Php81] Skip possible array on NullToStrictStringFuncCallArgRector ([#5587](https://togithub.com/rectorphp/rector-src/pull/5587)) - \[Php81] Skip another possible cast array to string on NullToStrictStringFuncCallArgRector ([#5589](https://togithub.com/rectorphp/rector-src/pull/5589)) - \[Transform] Allow class const fetch value on rules() on RectorConfigBuilderRector ([#5596](https://togithub.com/rectorphp/rector-src/pull/5596)) - \[Performance] Use strlen() early before loop on VendorMissAnalyseGuard ([#5597](https://togithub.com/rectorphp/rector-src/pull/5597)) - Copy subtype phpdoc on ClassPropertyAssignToConstructorPromotionRector ([#8438](https://togithub.com/rectorphp/rector/issues/8438)) ([#5603](https://togithub.com/rectorphp/rector-src/pull/5603)), Thanks [@pkvach](https://togithub.com/pkvach)! - config method must be static, to avoid creating rule before loading related ctor services ([#5606](https://togithub.com/rectorphp/rector-src/pull/5606)) - fix config for configured rule (https://github.com/rectorphp/rector-src/commit/5edb023974a55b0efee74dd9fe92b314dd521f2c) - \[PHP 8.0] Fix annotation to attribute in case of FQN class without () ([#5609](https://togithub.com/rectorphp/rector-src/pull/5609)) - \[Php80] Support windows new line line DoctrineAnnotationDecorator::LONG_ANNOTATION_REGEX ([#5610](https://togithub.com/rectorphp/rector-src/pull/5610)) - \[Php81] Handle after open parentheses on AnnotationToAttributeRector ([#5613](https://togithub.com/rectorphp/rector-src/pull/5613)) - \[BetterPhpDocParser] Move split new line with @\ to regex to support windows new line ([#5615](https://togithub.com/rectorphp/rector-src/pull/5615)) - \[Php81] Handle nested Fqcn UniqueConstraint on NestedAnnotationToAttributeRector ([#5614](https://togithub.com/rectorphp/rector-src/pull/5614)) - \[DX] Accept Y/y for confirmation of init config ([#5616](https://togithub.com/rectorphp/rector-src/pull/5616)) - \[CodeQuality] Skip private static call from static:: on LocallyCalledStaticMethodToNonStaticRector ([#5620](https://togithub.com/rectorphp/rector-src/pull/5620)) - \[PostRector] Skip remove unused imports on used in multiple docs in single node ([#5604](https://togithub.com/rectorphp/rector-src/pull/5604)) - \[DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector ([#5588](https://togithub.com/rectorphp/rector-src/pull/5588))
#### Removed :skull: - \[DeadCode] Skip with magic \__get() on RemoveUnusedPromotedPropertyRector ([#5573](https://togithub.com/rectorphp/rector-src/pull/5573)) - \[DX] Remove phpstan strict rules to ease contributing ([#5579](https://togithub.com/rectorphp/rector-src/pull/5579)) - \[DX] Remove type covarege, as handled by phpstan itself ([#5583](https://togithub.com/rectorphp/rector-src/pull/5583)) - \[DeadCode] Handle used in assign return on RemoveUnusedPrivatePropertyRector ([#5608](https://togithub.com/rectorphp/rector-src/pull/5608))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.