Commit Graph

249 Commits

Author SHA1 Message Date
Tomas Votruba
00f3fbe30d Updated Rector to commit ad15c5f694
ad15c5f694 [TypeDeclaration] Removing NodeRepository from ParamTypeDeclarationRector (#597)
2021-08-05 08:31:23 +00:00
Tomas Votruba
fa67d66a44 Updated Rector to commit 3eb503653f
3eb503653f [BetterStandardPrinter] Using Expr_ArrowFunction->returnType with print return type double colon right after the bracket (#596)
2021-08-05 05:49:38 +00:00
Tomas Votruba
fcfef6acab Updated Rector to commit 529eb40360
529eb40360 [DowngradePhp80] Handle both DowngradeTypedPropertyRector and DowngradeMixedTypeDeclarationRector Name parameter (#591)
2021-08-04 07:34:48 +00:00
Tomas Votruba
1b0c85ae13 Updated Rector to commit 202b47a593
202b47a593 Upgrade phpstan/phpstan to 0.12.94 (#585)
2021-08-03 13:41:15 +00:00
Tomas Votruba
46cf4c1774 Updated Rector to commit 0888a92985
0888a92985 [CodeQuality] Skip class with constructor parameter for ClassConstFetch on CallableThisArraToAnonymousFunctionRector (#581)
2021-08-03 10:22:54 +00:00
Tomas Votruba
1452c5d9ff Updated Rector to commit b3480900f3
b3480900f3 [CodingStyle] Remove YieldClassMethodToArrayClassMethodRector, rather PHPStorm job (#576)
2021-08-02 17:48:07 +00:00
Tomas Votruba
4a5ca2c9e5 Updated Rector to commit 66e21558ba
66e21558ba [PHPOffice] Extract package to standalone project (#575)
2021-08-02 15:56:42 +00:00
Tomas Votruba
bfa1433bd5 Updated Rector to commit 2c71aa6976
2c71aa6976 [VersionBonding] Update rector warning message for min PHP version project (#572)
2021-08-02 09:39:41 +00:00
Tomas Votruba
d0e5aaee2f Updated Rector to commit 645b7a8e8f
645b7a8e8f [automated] Re-Generate Nodes/Rectors Documentation (#562)
2021-08-01 00:25:55 +00:00
Tomas Votruba
c3bc0fc47d Updated Rector to commit d9f47f8572
d9f47f8572 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveOverriddenValuesRector (#554)
2021-07-31 11:34:50 +00:00
Tomas Votruba
276fac662d Updated Rector to commit 29c28fda87
29c28fda87 [EasyTesting] dogfood next iteration (#549)
2021-07-30 08:39:55 +00:00
Tomas Votruba
406cb3c9f8 Updated Rector to commit a152283fd7
a152283fd7 cleanup (#547)
2021-07-30 07:40:46 +00:00
Tomas Votruba
d162a45f40 Updated Rector to commit 6e73a1f069
6e73a1f069 [DowngradePhp70] Allow property fetch and static property fetch on DowngradeNullCoalesceRector (#540)
2021-07-29 07:26:45 +00:00
Tomas Votruba
ff5108a964 Updated Rector to commit cdad000d81
cdad000d81 [DowngradePhp80] Register DowngradeThrowExprRector to downgrade-php80 config set (#538)
2021-07-29 00:44:05 +00:00
Tomas Votruba
b8d4e57170 Updated Rector to commit a7f111e201
a7f111e201 [PHPStan] Clean up PHPStan ignore error messages (#530)
2021-07-28 04:37:30 +00:00
Tomas Votruba
a23b777a9a Updated Rector to commit 3a96b9097d
3a96b9097d [DeadCode] Skip fluent return  on RemoveEmptyMethodCallRector (#521)
2021-07-27 11:16:44 +00:00
Tomas Votruba
9d2869edb7 Updated Rector to commit e5d95bda10
e5d95bda10 [TypeDeclaration] Handle Recursive multiple class string array on CompleteVarDocTypePropertyRector (#520)
2021-07-26 23:57:06 +00:00
Tomas Votruba
c231e32779 Updated Rector to commit eb91c61b95
eb91c61b95 [Config] Clean up rector.php config (#514)
2021-07-26 09:06:10 +00:00
Tomas Votruba
3e96cfde08 Updated Rector to commit ba990a2ec7
ba990a2ec7 [Php74] Skip cast (string) on ReflectionType on ChangeReflectionTypeToStringToGetNameRector (#510)
2021-07-25 14:35:58 +00:00
Tomas Votruba
1139ca19b1 Updated Rector to commit cefa0d516b
cefa0d516b [Config] Clean up rector.php skip option config (#509)
2021-07-25 13:47:12 +00:00
Tomas Votruba
c87080e236 Updated Rector to commit a5d59dab8b
a5d59dab8b Remove PropertyAdder, extra layer without value (#507)
2021-07-25 12:40:11 +00:00
Tomas Votruba
a34300b4e6 Updated Rector to commit 875156d6d0
875156d6d0 [PHPStan] Clean up PHPStan ignore error messages (#508)
2021-07-25 12:21:52 +00:00
Tomas Votruba
c4c84e0db7 Updated Rector to commit 34fff11f80
34fff11f80 Remove deprecated addConstructorDependencyToClass() from AbstractRector class, use PropertyToAddCollector directly instaed (#506)
2021-07-25 11:42:11 +00:00
Tomas Votruba
c141cde162 Updated Rector to commit 34c3e8fce9
34c3e8fce9 [TypeDeclaration] Handle (object) cast on CompleteVarDocTypePropertyRector (#503)
2021-07-25 11:41:40 +00:00
Tomas Votruba
4a70b89e41 Updated Rector to commit 4456c4690b
4456c4690b extend AutowiredClassMethodAnalyzer with property
2021-07-25 07:47:04 +00:00
Tomas Votruba
cae78baa44 Rector 0.11.39 2021-07-24 12:10:31 +00:00
Tomas Votruba
4c03335bdf Updated Rector to commit 771a3390b0
771a3390b0 [TypeDeclaration] Handle simple class name as string for non-native class (#501)
2021-07-24 11:53:32 +00:00
Tomas Votruba
9ffc8ec64a Updated Rector to commit 3d1ec1d85d
3d1ec1d85d bump docs
2021-07-23 16:35:16 +00:00
Tomas Votruba
27e4e06416 Updated Rector to commit 5967ffa267
5967ffa267 Fix along other packages gha (#492)
2021-07-23 06:16:10 +00:00
Tomas Votruba
a3e534ff19 Updated Rector to commit db2e76b99c
db2e76b99c load stubs in config
2021-07-22 23:37:17 +00:00
Tomas Votruba
29db7ec980 Updated Rector to commit 1747d9899a
1747d9899a [DeadCode] Skip next used as variable variable on RemoveUnusedVariableAssignRector (#486)
2021-07-22 14:50:45 +00:00
Tomas Votruba
26b3ebb197 Rector 0.11.38 2021-07-21 14:29:45 +00:00
Tomas Votruba
e3f99041de Updated Rector to commit 24a32dfefb
24a32dfefb Fix docs double import (#478)
2021-07-21 13:46:30 +00:00
Tomas Votruba
1127b0c4e2 Updated Rector to commit bc9d2d48d5
bc9d2d48d5 [DX] Add MissedRectorDueVersionChecker (#465)
2021-07-21 09:35:57 +00:00
Tomas Votruba
f679476193 Updated Rector to commit 1478d8eb78
1478d8eb78 [Core] Comment @todo tweak FileProcessor::parseFileInfoToLocalCache() (#477)
2021-07-21 09:00:56 +00:00
Tomas Votruba
deee7a1126 Updated Rector to commit 820cb16122
820cb16122 Update README.md (#472)
2021-07-21 08:58:31 +00:00
Tomas Votruba
4bf7cb7c66 Updated Rector to commit 031d14f6e4
031d14f6e4 [Core] Ensure no infinite loop in PhpFileProcessor (#476)
2021-07-21 08:53:37 +00:00
Tomas Votruba
843b27c4dc Updated Rector to commit 83419c4376
83419c4376 [CodeQuality] Handle both ExplicitBoolCompareRector + CountArrayToEmptyArrayComparisonRector usage (#474)
2021-07-21 08:48:08 +00:00
Tomas Votruba
7483b5a016 Updated Rector to commit 692e9e3db4
692e9e3db4 Rector 7.0 Native init steps (#475)
2021-07-21 08:41:12 +00:00
Tomas Votruba
fd9f6abc9e Rector 0.11.37 2021-07-20 21:31:45 +00:00
Tomas Votruba
85c097bb56 Updated Rector to commit 0fe1656da6
0fe1656da6 [DeadCode] Fix RemoveUnusedPromotedPropertyRector for private trait-used promoted param (#470)
2021-07-20 20:56:20 +00:00
Tomas Votruba
9e4b848150 Updated Rector to commit 48ccb539d4
48ccb539d4 [DeadCode] Handle null start token position attribute in NodeByTypeAndPositionCollector (#469)
2021-07-20 14:23:43 +00:00
Tomas Votruba
cad500c817 Updated Rector to commit 0d3e54357f
0d3e54357f extract VendorLocationDetector (#462)
2021-07-19 20:57:26 +00:00
Tomas Votruba
767752c16e Updated Rector to commit bb41d72116
bb41d72116 [CodingStyle] Add OrderAttributesRector (#459)
2021-07-19 06:34:07 +00:00
Tomas Votruba
0ead874fad Updated Rector to commit 75c06eab69
75c06eab69 Fix match static method name in annotation (#446)
2021-07-19 05:06:26 +00:00
Tomas Votruba
d77b300a95 Updated Rector to commit 2fc18bd2c0
2fc18bd2c0 [Rectify] Manual twice run rector against rules directory (#448)
2021-07-18 02:11:18 +00:00
Tomas Votruba
7b2bf95199 Updated Rector to commit d3f814ca27
d3f814ca27 cleanup
2021-07-17 17:24:05 +00:00
Tomas Votruba
4fa3a45ce3 Updated Rector to commit bc541b6a68
bc541b6a68 lock to fixed rector-doctrine
2021-07-17 15:51:01 +00:00
Tomas Votruba
d9693d9df5 Updated Rector to commit 3c9b567b06
3c9b567b06 bump symfony package version
2021-07-17 14:51:34 +00:00
Tomas Votruba
e3f781999f Updated Rector to commit 2a28758894
2a28758894 [Core] Fix --no-progress-bar option not applied (#447)
2021-07-17 03:01:09 +00:00
Tomas Votruba
cc15e42d73 Updated Rector to commit a0f2ad9789
a0f2ad9789 [Privatization] Skip ChangeGlobalVariablesToPropertiesRector on read only global variable (#442)
2021-07-16 09:16:38 +00:00
Tomas Votruba
cae21ff247 Updated Rector to commit acabcfc456
acabcfc456 [TypeDeclaration] Do not add return type on parent Closure for deep closure has return type on ReturnTypeFromStrictTypedCallRector (#439)
2021-07-15 22:20:38 +00:00
Tomas Votruba
816016aac7 Updated Rector to commit 294bea2d18
294bea2d18 [FileProcessor] Run untill the file is fixed completelly (#432)
2021-07-15 03:40:51 +00:00
Tomas Votruba
68e641029b Updated Rector to commit 4f2d2d12dd
4f2d2d12dd [DeadCode] Skip RemoveUnusedNonEmptyArrayBeforeForeachRector on array param has default null (#433)
2021-07-14 07:23:54 +00:00
Tomas Votruba
25ec6cc541 Updated Rector to commit b6039d71e8
b6039d71e8 Update TokenGetAllToObjectRector to use the correct method name (#431)
2021-07-13 11:12:27 +00:00
Tomas Votruba
adc6b8148a Updated Rector to commit f7eeebaa7b
f7eeebaa7b [DeadCode] Fix non-null type check on RemoveUnusedNonEmptyArrayBeforeForeachRector (#430)
2021-07-13 05:50:47 +00:00
Tomas Votruba
55c47b9663 Updated Rector to commit d08a87f692
d08a87f692 added promoted property test for annotation to attribute rule (#425)
2021-07-12 08:28:11 +00:00
Tomas Votruba
f3645ab6a9 Updated Rector to commit fb9ad83c32
fb9ad83c32 [CodeQuality] Skip InlineIfToExplicitIfRector on constant definition (#422)
2021-07-11 15:30:37 +00:00
Tomas Votruba
877bf53643 Updated Rector to commit 82aac93545
82aac93545 [Defluent] Skip ReturnFluentChainMethodCallToNormalMethodCallRector on last call not return current object (#413)
2021-07-10 11:50:43 +00:00
Tomas Votruba
54dcc7b361 Updated Rector to commit a49c8612af
a49c8612af [Downgrade PHP 8.0] Fix DowngradeNullsafeToTernaryOperatorRector for trait (#412)
2021-07-10 00:43:27 +00:00
Tomas Votruba
8883574049 Updated Rector to commit 6f1f047087
6f1f047087 add RenameParamValueObjectInterface to trusted downgrade widening types
2021-07-09 23:00:32 +00:00
Tomas Votruba
4f5c3f4a02 Updated Rector to commit 0c709dfac7
0c709dfac7 Refactor node removing to phpdoc node traverser (#405)
2021-07-08 15:36:45 +00:00
Tomas Votruba
c3d5e6fe7b Updated Rector to commit e066024702
e066024702 [PHP 8.0] Add annotation removal in case of nested (#403)
2021-07-08 12:36:20 +00:00
Tomas Votruba
207c620c29 Updated Rector to commit 311a96fbf8
311a96fbf8 bump php-parser to 4.11, phpstan to 0.12.91 (#402)
2021-07-08 00:06:13 +00:00
Tomas Votruba
85f7b6113a Updated Rector to commit d5cd2bcc35
d5cd2bcc35 [Php80] feat: str_ends_with with hardcoded string (#399)
2021-07-07 14:26:24 +00:00
Tomas Votruba
09e84aa431 Updated Rector to commit 20153a915b
20153a915b [TypeDeclaration] Skip mixed union return on ReturnTypeDeclarationRector (#393)
2021-07-07 00:20:29 +00:00
Tomas Votruba
41844a92f3 Updated Rector to commit 36ac7ab284
36ac7ab284 Add support for phpstan/phpstan 0.12.91 (#379)
2021-07-06 14:11:36 +00:00
Tomas Votruba
8a32b5f563 Updated Rector to commit 150da023db
150da023db include standalone traits in downgrade too
2021-07-06 08:19:07 +00:00
Tomas Votruba
551faef57f Updated Rector to commit 2c62019c50
2c62019c50 add resource type
2021-07-05 19:53:26 +00:00
Tomas Votruba
b14feb1ca6 Updated Rector to commit b07a9cc1ba
708bf7e879 add container bag patching b07a9cc1ba add symfony/dependency-injectoin wiht completed types
2021-07-05 19:39:24 +00:00
Tomas Votruba
bb3e40f727 Updated Rector to commit a83dd76994
a83dd76994 revert vendor/rector order
2021-07-05 15:20:27 +00:00
Tomas Votruba
121ea7f23d Updated Rector to commit 48784457eb
48784457eb Fix doctrine inflector bug downgrade (#388)
2021-07-05 15:06:41 +00:00
Tomas Votruba
95fe045d30 Updated Rector to commit 0a616c462d
0a616c462d Remove unused ClassLikeParentResolver (#385)
2021-07-05 10:54:22 +00:00
Tomas Votruba
c7db350977 Updated Rector to commit c0d6760eab
c0d6760eab [CodeQuality] Handle CallableThisArrayToAnonymousFunctionRector on static call (#382)
2021-07-05 08:51:49 +00:00
Tomas Votruba
a79e6f56df Updated Rector to commit ff1ad31d6a
ff1ad31d6a [PHP 7.2] Refactor DowngradeParameterTypeWideningRector to class method (#380)
2021-07-05 07:47:59 +00:00
Tomas Votruba
2d78685dea Updated Rector to commit d92de44cc5
d92de44cc5 use symfony/console with fixed covariant types (#378)
2021-07-04 22:54:28 +00:00
Tomas Votruba
1f8149a055 Updated Rector to commit a9b1bbba88
a9b1bbba88 [PHP 8.0] Make Downgrade widening union depend on ClassMethod, the narrow scope (#375)
2021-07-04 18:27:51 +00:00
Tomas Votruba
4333c09758 Updated Rector to commit dfbbb02dec
dfbbb02dec [PHP 8.0] Fix DowngradeNamedArgumentRector named arguments (#373)
2021-07-04 13:13:54 +00:00
Tomas Votruba
9ec46d9cb6 Updated Rector to commit a7d7f33504
a7d7f33504 Remove upgrade dir
2021-07-03 16:49:26 +00:00
Tomas Votruba
ec097d0fda Updated Rector to commit 9907e913af
9907e913af bump to fixed ECS
2021-07-03 10:57:19 +00:00
Tomas Votruba
1b040b5d61 Rector 0.11.33 2021-07-02 23:27:34 +00:00
Tomas Votruba
915982a19d Updated Rector to commit 96dbc69562
96dbc69562 bump deps
2021-07-02 23:26:23 +00:00
Tomas Votruba
8f60f855a1 Updated Rector to commit 4353830f78
4353830f78 use typo3 rector stable
2021-07-02 21:42:58 +00:00
Tomas Votruba
e3c7d5c703 Updated Rector to commit 2a0cae5507
2a0cae5507 Make progress bar reflect number of processed files + process file by file in series (#362)
2021-07-02 20:55:14 +00:00
Tomas Votruba
79df1ed831 Updated Rector to commit 6238705e93
6238705e93 mics
2021-07-02 00:08:09 +00:00
Tomas Votruba
6cdf569f7e Updated Rector to commit c280ef9fc1
c280ef9fc1 [CodingStyle] Default empty array [] on UnSpreadOperatorRector (#359)
2021-07-01 22:11:47 +00:00
Tomas Votruba
5585a0cc88 Updated Rector to commit 2bc0f4c096
2bc0f4c096 [DeadCode] Skip nullable from param for RemoveUnusedNonEmptyArrayBeforeForeachRector (#347)
2021-07-01 12:49:39 +00:00
Tomas Votruba
1666838b21 Updated Rector to commit 9575dd2231
9575dd2231 [CodingStyle] Skip indirect version number on VersionCompareFuncCallToConstantRector (#344)
2021-07-01 08:50:15 +00:00
Tomas Votruba
e6b1e7b781 Updated Rector to commit c277e7d35c
c277e7d35c cleanup
2021-06-30 22:39:15 +00:00
Tomas Votruba
c3f5f655ef Updated Rector to commit 326a8d23e9
326a8d23e9 Support negative equality on StrEndsWith rule (#339)
2021-06-30 11:27:30 +00:00
Tomas Votruba
6949a054ce Updated Rector to commit 1d1dc73fcb
1d1dc73fcb [PHP 8.0] Fix attribute multi-line (#337)
2021-06-30 01:01:00 +00:00
Tomas Votruba
4d72755fae Updated Rector to commit 8cdd122c87
8cdd122c87 [Reflection] Avoid error Call to a member function getType() on null on ReflectionResolver (#334)
2021-06-29 20:43:00 +00:00
Tomas Votruba
a9f2b17421 Updated Rector to commit 8f521f5500
8f521f5500 [Php74] Set Nullable for TypedPropertyRector not filled by current class method (#295)
2021-06-29 12:21:11 +00:00
Tomas Votruba
ed4f2ecd4c Updated Rector to commit e666df703e
e666df703e More Reflection cleanup (#328)
2021-06-29 00:31:58 +00:00
Tomas Votruba
20323fa50b Updated Rector to commit 5282793145
5282793145 Add enums (#326)
2021-06-28 21:18:55 +00:00
Tomas Votruba
d8c2a5ac52 Updated Rector to commit 62bbaa56d2
62bbaa56d2 Cleanup stuff (#324)
2021-06-28 17:10:14 +00:00
Tomas Votruba
3d7a69bec2 Updated Rector to commit 5e4b1596ed
5e4b1596ed cleanup NodeRepository (#323)
2021-06-28 14:19:42 +00:00
Tomas Votruba
57002777fc Updated Rector to commit 1a87a3dfcc
1a87a3dfcc [TypeDeclaration] Prevent checking class like has external fully qualifieds when class like is null (#319)
2021-06-28 09:39:23 +00:00
Tomas Votruba
5a0a45ded6 Updated Rector to commit 20ad16b1e6
20ad16b1e6 [automated] Re-Generate Nodes/Rectors Documentation (#307)
2021-06-27 12:12:15 +00:00
Tomas Votruba
a094563744 Updated Rector to commit 4da26f6680
4da26f6680 fix ReturnTypeFromStrictTypedCallRector
2021-06-26 21:53:44 +00:00