Commit Graph

562 Commits

Author SHA1 Message Date
Tomas Votruba bd5371c774 Updated Rector to commit 0d5169dd77c909421aa1de31aac7bdcd502d66aa
0d5169dd77 [Php70] Remove previous attribute usage on ReduceMultipleDefaultSwitchRector (#3537)
2023-03-29 20:33:15 +00:00
Tomas Votruba 0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +00:00
Tomas Votruba 7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba 6481c8dccc Updated Rector to commit 5f4edd9230355cadc311ba8e8954fb9ae5bdc849
5f4edd9230 Remove NonVariableToVariableOnFunctionCallRector, should be handled manually as might need attention (#3357)
2023-02-07 22:56:24 +00:00
Tomas Votruba 66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba 6d10127c95 Updated Rector to commit b98de3edc21312c2e5483b6a120ccb04642f5346
b98de3edc2 [Php70] Handle crash on IfToSpaceshipRector with enum case (#3317)
2023-01-29 09:53:53 +00:00
Tomas Votruba 764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba 6025307990 Updated Rector to commit c80cd6f1f03f6f4e1b1aee6504126699e6a06fe3
c80cd6f1f0 [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
2022-12-20 21:37:46 +00:00
Tomas Votruba ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba 18b5311e05 Updated Rector to commit fa9a953fc8df6d31c24b0415b177580f7edd4100
fa9a953fc8 [Php80] Skip possible numeric string switch cond with all integer case cond on ChangeSwitchToMatchRector (#3067)
2022-11-15 20:31:43 +00:00
Tomas Votruba e05478f2e2 Updated Rector to commit e78e4727d513475187dae0300f78ef70043379f9
e78e4727d5 Utilize Type->isString() in rules/ (#3064)
2022-11-15 00:01:27 +00:00
Tomas Votruba ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba e8603ff6cb Updated Rector to commit e4ec1f9d52d17b7d9f0effe1230f2e0778156ba4
e4ec1f9d52 [Php70] Handle crash on First class callable on ThisCallOnStaticMethodToStaticCallRector (#3003)
2022-10-19 11:11:32 +00:00
Tomas Votruba edf6290721 Updated Rector to commit d2ff17ea434ef68e13e62126ec463002e861eaba
d2ff17ea43 [Php81] Skip assigned after defined as constructor promotion on ReadOnlyPropertyRector (#2976)
2022-10-05 09:16:10 +00:00
Tomas Votruba e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba 72df4482bd Updated Rector to commit 603502724909905922d0c18646fb86b51d844fc9
6035027249 Skip magic methods for StaticCallOnNonStaticToInstanceCallRector. (#2941)
2022-09-20 05:49:46 +00:00
Tomas Votruba e46f4f4e38 Updated Rector to commit 35b0d39f63b1d8dff169ee673c6e6de1268304b3
35b0d39f63 Skip method of abstract class for StaticCallOnNonStaticToInstanceCallRector. (#2938)
2022-09-19 17:42:48 +00:00
Tomas Votruba 6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00
Tomas Votruba 967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +00:00
Tomas Votruba 1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba 68e1f45251 Updated Rector to commit 4d01db5c10372f2a0a7cf63ec51fa7e2913ee2a3
4d01db5c10 [DX] Improve direct return of Stmt arrays in Rector rules, remove NodesToAddCollector from AbstractRector (#2623)
2022-07-03 21:09:19 +00:00
Tomas Votruba fbc13bfea3 Updated Rector to commit e6e5895517eb301f3fa3b00759b06876cacde836
e6e5895517 [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
2022-07-01 07:39:49 +00:00
Tomas Votruba a0705ea3d6 Updated Rector to commit 6845975035
6845975035 [Core] Replace deprecated ->enterCatch() with enterCatchType() (#2548)
2022-06-25 16:12:40 +00:00
Tomas Votruba 582aecc7dd Updated Rector to commit 237f603c81
237f603c81 Skip all but exactly one return (#2565)
2022-06-25 16:12:31 +00:00
Tomas Votruba f8d669f3e6 Updated Rector to commit dcad222eb7
dcad222eb7 [Core] Handle Scope not available on DowngradeArrayIsListRector+DowngradePregUnmatchedAsNullConstantRector (#2556)
2022-06-25 16:11:22 +00:00
Tomas Votruba 6c8432ebfa Updated Rector to commit 26a2a5aab5
26a2a5aab5 [PHPStan] Fix PHPStan notice on MultiDirnameRector (#2540)
2022-06-20 14:04:59 +00:00
Tomas Votruba 76fe03af38 Updated Rector to commit 21fc218e08
21fc218e08 [Core] AbstractScopeAwareRector is ready to be used in custom rules (#2537)
2022-06-20 13:06:04 +00:00
Tomas Votruba 667b378a17 Updated Rector to commit 88e17ecb10
88e17ecb10 [PHP 7.0] skip non-existing method in StaticCallOnNonStaticToInstanceCallRector (#2532)
2022-06-19 08:57:14 +00:00
Tomas Votruba f01cff4ff3 Updated Rector to commit 10fd4c3498
10fd4c3498 [Php70] Refactor MultiDirnameRector by moving nestingLevel check to separate method (#2488)
2022-06-14 06:50:56 +00:00
Tomas Votruba dd31e833a9 Updated Rector to commit ce1c29184d
ce1c29184d [scoped] change only year and month, to make diff esaier to see; autoload is handled already
2022-06-11 12:27:46 +00:00
Tomas Votruba b4891e547c Updated Rector to commit a5340c6f06
a5340c6f06 [Renaming] Do not rename docblock same name not found in use inside namespace (#2471)
2022-06-11 11:59:10 +00:00
Tomas Votruba a9ffd906d7 Updated Rector to commit 368dbb048c
368dbb048c docs: fix instruction in CONTRIBUTING.md (#2470)
2022-06-10 05:55:49 +00:00
Tomas Votruba 63f3dad444 Updated Rector to commit eaea281956
eaea281956 [Php70] Handle crash on EregToPregMatchRector (#2460)
2022-06-09 09:47:09 +00:00
Tomas Votruba 7e1e20e9f2 Updated Rector to commit 17b86d4b77
17b86d4b77 [CodeQuality] Remove unnecessary check next return removed no SimplifyIfElseToTernaryRector (#2457)
2022-06-09 06:07:50 +00:00
Tomas Votruba e8d4384fe8 Updated Rector to commit 6c8b3dc9f8
6c8b3dc9f8 [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
2022-06-08 05:54:40 +00:00
Tomas Votruba b6a8818d00 Updated Rector to commit cbbe410aff
cbbe410aff string prefixing is still needed
2022-06-07 09:46:15 +00:00
Tomas Votruba 9bb996bfce Updated Rector to commit a9779404d3
a9779404d3 try without prefixing string classes
2022-06-07 09:38:27 +00:00
Tomas Votruba bdec76e60e Updated Rector to commit 5ed173f14865e72ba7156645e2a79930152e1cc5
5ed173f148 skip RuleDefinition explicitly
2022-06-07 09:18:30 +00:00
Tomas Votruba bdfd24339f Updated Rector to commit 2e977bd3aad21113e0bb7e2aa9b102f6f1e9246d
2e977bd3aa deploy to original repository
2022-06-07 08:22:29 +00:00
Tomas Votruba 91f5aab952 Updated Rector to commit 4f07a4f30f
4f07a4f30f [Php74] Remove ReservedFnFunctionRector (#2447)
2022-06-07 06:40:10 +00:00
Tomas Votruba aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00
Tomas Votruba a28f4b14a4 Updated Rector to commit 2022-06-06 16:43:29 +00:00
Tomas Votruba 07acf2086f Updated Rector to commit 40d9102eab
40d9102eab [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
2022-06-06 06:00:07 +00:00
Tomas Votruba 3113a2404c Updated Rector to commit dbb54b83cc
dbb54b83cc [automated] Re-Generate Nodes/Rectors Documentation (#2438)
2022-06-05 00:39:10 +00:00
Tomas Votruba 98eb7617da Updated Rector to commit 283a9af3f0
283a9af3f0 [Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
2022-06-04 07:39:10 +00:00
Tomas Votruba 14da17860d Updated Rector to commit 7722a57d80
7722a57d80 [PHP 8.0] Add return type support to ConstantListClassToEnumRector (#2420)
2022-06-03 07:23:26 +00:00
Tomas Votruba 02c0f07aa0 Updated Rector to commit 9187ff0430
9187ff0430 [Scoped] Update full_build.sh to reflect the current Github workflow for build scoped (#2413)
2022-06-02 07:23:49 +00:00
Tomas Votruba 780f0d3ad8 Updated Rector to commit 06b0b325da
06b0b325da remove victor, it handles only metafiles, not unused classes
2022-06-01 07:38:23 +00:00
Tomas Votruba 0501290a9d Updated Rector to commit dc6bd9680c
dc6bd9680c [e2e] Handle Parent Property empty missing Scope on StaticCallToMethodCallRector+RenameClassRector (#2396)
2022-05-31 07:17:00 +00:00
Tomas Votruba d035c86f90 Updated Rector to commit a7e66d67bd
a7e66d67bd remove excluded files
2022-05-30 00:02:22 +00:00
Tomas Votruba 5b72ec39c6 Updated Rector to commit db57fbaae4
db57fbaae4 Remove myclabs/php-enum dependency (#2388)
2022-05-29 22:41:07 +00:00
Tomas Votruba 9a9e8960ee Updated Rector to commit 9cd69c2b3d
9cd69c2b3d [automated] Re-Generate Nodes/Rectors Documentation (#2385)
2022-05-29 00:36:37 +00:00
Tomas Votruba 94e64470da Updated Rector to commit 012e9ad553
012e9ad553 Add annotation to attribute core rename in AnnotationToAttributeRector (#2384)
2022-05-28 00:27:30 +00:00
Tomas Votruba 7e46eb8267 Updated Rector to commit a2d6da8b4e
a2d6da8b4e Back to php-scoper 0.14 with scoping from php 8.0 (#2370)
2022-05-27 11:51:31 +00:00
Tomas Votruba beba7d6efe Updated Rector to commit 1249d947f4
1249d947f4 Try php-scoper 0.17 (#2368)
2022-05-27 11:25:02 +00:00
Tomas Votruba 911a9772d6 Updated Rector to commit e690cd059c
e690cd059c restore downgrade configs
2022-05-27 10:39:50 +00:00
Tomas Votruba 74a2d071eb Updated Rector to commit 3da22b0231
3da22b0231 [Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector (#2363)
2022-05-26 07:20:40 +00:00
Tomas Votruba c5eecc40c0 Updated Rector to commit 4c53b206a4
4c53b206a4 [Php80] Do not remove array<mixed> inside Union type on UnionTypesRector (#2358)
2022-05-25 06:59:11 +00:00
Tomas Votruba b93cf80a4f Updated Rector to commit dc9189280f
dc9189280f [PHPStan] Update to PHPStan ^1.7.0 (#2354)
2022-05-24 13:01:35 +00:00
Tomas Votruba 5d8ca84738 Updated Rector to commit f25715b7b3
f25715b7b3 [Php73] Skip Encapsed on StringifyStrNeedlesRector + Temporary Pin PHPStan 1.6.9 (#2352)
2022-05-24 08:37:28 +00:00
Tomas Votruba f89782b964 Updated Rector to commit f134b6183e
f134b6183e [Php71] Ensure return  only when catch of TryCatch removed on MultiExceptionCatchRector (#2350)
2022-05-23 03:50:09 +00:00
Tomas Votruba 2b85976c4c Updated Rector to commit adb6e68c2a
adb6e68c2a [automated] Re-Generate Nodes/Rectors Documentation (#2343)
2022-05-22 00:38:26 +00:00
Tomas Votruba 6fe802bfdc Updated Rector to commit fcadc67328
fcadc67328 add symfony php config option to allow loading route factory (#2339)
2022-05-21 08:48:33 +00:00
Tomas Votruba 6a5ebad0e7 Updated Rector to commit f0a1b688f3
f0a1b688f3 [DowngradePhp80] Apply PHPStan 1.7.x-dev compatible for PhpParameterReflection (#2336)
2022-05-20 10:24:40 +00:00
Tomas Votruba ce9b1cc6e6 Updated Rector to commit 30a53bfd93
30a53bfd93 [DowngradePhp80] Add in arrow function in return support on DowngradeMatchToSwitchRector (#2331)
2022-05-19 06:59:21 +00:00
Tomas Votruba f845008257 Updated Rector to commit 50943ea4f2
50943ea4f2 [CodeQuality] Skip re use variable in assign Expr on InlineArrayReturnAssignRector (#2325)
2022-05-18 01:37:38 +00:00
Tomas Votruba 9ec874fb89 Updated Rector to commit 15d93fa815
15d93fa815 [DeadCode] Handle combine RemoveAlwaysTrueIfConditionRector + RemoveDeadConstructorRector (#2324)
2022-05-17 09:51:50 +00:00
Tomas Votruba 4708d6b081 Updated Rector to commit c0086b7e14
c0086b7e14 [e2e] Add e2e for tests removed node display applied rules with return null (#2320)
2022-05-16 01:19:48 +00:00
Tomas Votruba ad10fd18db Updated Rector to commit 96400215b5
96400215b5 [automated] Re-Generate Nodes/Rectors Documentation (#2314)
2022-05-15 09:42:33 +00:00
Tomas Votruba f2550b0de1 Updated Rector to commit f92d5deca3
f92d5deca3 Fix Scalar_Encapsed node as dynamic in  (#2309)
2022-05-14 02:43:00 +00:00
Tomas Votruba b03aa95fcc Updated Rector to commit 28dc9cebb2
28dc9cebb2 Prepare NamedToUnnamedArgs for PhpParameterReflection change in PHPStan 1.7 (#2305)
2022-05-13 09:29:14 +00:00
Tomas Votruba 99edeb9629 Updated Rector to commit 52ea41240e
47bea33c2e use changelog annotations to display useful into under the change 52ea41240e restore regex replaces
2022-05-12 19:17:07 +00:00
Tomas Votruba bca89e29da Updated Rector to commit 33cd52e703
33cd52e703 Fix position of class after non-reachable stmts (#2299)
2022-05-12 09:11:03 +00:00
Tomas Votruba d967349fb9 Updated Rector to commit cd2a644e0c
cd2a644e0c [Core] Refactor RectifiedAnalyzer: early check against AbstractScopeAwareRector instead of Original node (#2295)
2022-05-12 05:20:59 +00:00
Tomas Votruba 060b1642ed Updated Rector to commit 55be345ca9
55be345ca9 Various improvements (#2291)
2022-05-11 17:53:44 +00:00
Tomas Votruba a93d572d86 Updated Rector to commit ebd4c3fee6
ebd4c3fee6 [Renaming] Skip renaming method call on RenameMethodRector when both old and new exists, which implements interface as config (#2276)
2022-05-11 00:39:05 +00:00
Tomas Votruba d72f56e566 Updated Rector to commit 30f2f91909
30f2f91909 [CodeQuality][DeadCode] Handle SimplifyUselessVariableRector+RemoveOverriddenValuesRector (#2277)
2022-05-10 12:38:09 +00:00
Tomas Votruba ec43ca03ec Updated Rector to commit 97a33aa694
97a33aa694 [Core] Remove is_string() check on glob loop data (#2267)
2022-05-09 06:43:28 +00:00
Tomas Votruba 992aade98a Updated Rector to commit d89c23267c
d89c23267c [automated] Re-Generate Nodes/Rectors Documentation (#2262)
2022-05-08 00:33:36 +00:00
Tomas Votruba 24318b9a19 Updated Rector to commit 26cad67b1c
26cad67b1c [CodingStyle] Clean up getParents() call on MakeInheritedMethodVisibilitySameAsParentRector (#2246)
2022-05-07 00:18:08 +00:00
Tomas Votruba a548c62cde Updated Rector to commit ede1106a69
ede1106a69 [DX] Improve DowngradeCatchThrowableRector to return nodes directly (#2241)
2022-05-06 07:17:49 +00:00
Tomas Votruba d59bf7cd51 Updated Rector to commit 561e3963e1
561e3963e1 Use refactorWithScope() in MakeInheritedMethodVisibilitySameAsParentRector (#2236)
2022-05-05 17:42:23 +00:00
Tomas Votruba a2cfc4196f Updated Rector to commit 0175838a0c
0175838a0c [DX] Cleanup ComplexNodeRemover (#2230)
2022-05-05 06:11:24 +00:00
Tomas Votruba 128aa6dc82 Updated Rector to commit 7209b23341
7209b23341 [Php73] Skip both reset and key assigned on ArrayKeyFirstLastRector (#2219)
2022-05-04 00:06:05 +00:00
Tomas Votruba 80c29bac02 Updated Rector to commit c4e1ee2b3e
c4e1ee2b3e Added new functions to NullToStrictStringFuncCallArgRector (#2217)
2022-05-03 12:09:48 +00:00
Tomas Votruba d71e817365 Updated Rector to commit 992d1efc75
992d1efc75 [CodeQuality] Skip CallableThisArrayToAnonymousFunctionRector when inside of Attribute (#2212)
2022-05-02 09:44:00 +00:00
Tomas Votruba 0263197624 Updated Rector to commit 3f1f632c04
3f1f632c04 [automated] Apply Coding Standard (#2204)
2022-05-01 00:51:36 +00:00
Tomas Votruba a36b608f99 Updated Rector to commit e782cccb55
e782cccb55 [CodingStyle] Clean up spl_object_hash() check on NewlineAfterStatementRector (#2203)
2022-04-30 06:40:36 +00:00
Tomas Votruba 0ab11406b4 Updated Rector to commit 4d7c087805
4d7c087805 [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early (#2193)
2022-04-29 06:42:11 +00:00
Tomas Votruba e6d9de7fba Updated Rector to commit 08bb10de6b
08bb10de6b [CodeQuality] Add InlineArrayReturnAssignRector (#2183)
2022-04-28 14:55:01 +00:00
Tomas Votruba 2e00657da7 Updated Rector to commit 4fea4e23b9
4fea4e23b9 [TypeDeclaration] Skip return type defined Closure on ReturnTypeDeclarationRector (#2179)
2022-04-27 13:37:37 +00:00
Tomas Votruba 5147929731 Updated Rector to commit 43aa4d91f7
43aa4d91f7 Add SameNamespacedTypeSpecifier (#2169)
2022-04-26 08:13:18 +00:00
Tomas Votruba f27b77df88 Updated Rector to commit 90dae505af
90dae505af Remove uses nodes attribute - part #1 (#2155)
2022-04-25 07:10:07 +00:00
Tomas Votruba 19e48f49f2 Updated Rector to commit 366c994a5c
366c994a5c More current statement attribute clean up (#2150)
2022-04-24 17:30:55 +00:00
Tomas Votruba 22a6a7d222 Updated Rector to commit dc7a9a85f3
dc7a9a85f3 [DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#2145)
2022-04-24 07:48:38 +00:00
Tomas Votruba 11667e7491 Updated Rector to commit 2f5a525e65
2f5a525e65 Revert adding RemoveNamespaceRector (#2133)
2022-04-23 10:11:50 +00:00
Tomas Votruba af205b10a4 Updated Rector to commit 75fccc5d58
75fccc5d58 [Php71] Remove PropertyFetchAnalyzer::isFilledByConstructParam (#2122)
2022-04-22 00:49:25 +00:00
Tomas Votruba 07e4ebd293 Updated Rector to commit a0c8a6be61
a0c8a6be61 add deprecations to Option constants and refer to RectorConfig (#2112)
2022-04-21 06:47:26 +00:00
Tomas Votruba 764369f38b Updated Rector to commit d90953d9a9
d90953d9a9 [DX] Add RectorConfig upgrade rule to make upgrade easier :) (#2098)
2022-04-20 07:06:09 +00:00
Tomas Votruba 614136ae37 Updated Rector to commit b92465d5c0
b92465d5c0 fixes #7118 (#2097)
2022-04-19 22:20:46 +00:00