Commit Graph

331 Commits

Author SHA1 Message Date
Tomas Votruba 6cacf30624 Updated Rector to commit 7e2495e5f572bb566a845a0e1a6329cf141f872d
7e2495e5f5 [Php70] Skip inside Encapsed on ThisCallOnStaticMethodToStaticCallRector (#5481)
2024-01-19 14:05:32 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +00:00
Tomas Votruba 2a8dd1b78f Updated Rector to commit 368075b95cf10dff9d0313abbe94d3c6d3b28f67
368075b95c [PHP 7.0] Skip mt_rand() replacement as not valuable (#5315)
2023-12-03 10:51:00 +00:00
Tomas Votruba ae4c0b72cb Updated Rector to commit 72cdbd0613318b797455deba64ebe6358d58af42
72cdbd0613 [CodeQuality][Php70] Handle LocallyCalledStaticMethodToNonStaticRector + ThisCallOnStaticMethodToStaticCallRector must change both method and caller (#5196)
2023-10-26 07:11:41 +00:00
Tomas Votruba 654c818f4e Updated Rector to commit 5ac3cb377abf968396c23573d8562e6ab6967f2a
5ac3cb377a [Php70] Fix Php4 contructor not replaced with __construct() on php 7.4 environment (#5189)
2023-10-19 13:47:36 +00:00
Tomas Votruba 3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba 80654c23af Updated Rector to commit 8ae33c5f7ce2f1b27dd0a3100f8e9bdbb18a5361
8ae33c5f7c [Php70] Remove appendArgs() usage on CallUserMethodRector (#4731)
2023-08-09 12:42:27 +00:00
Tomas Votruba 78d51cc3eb Updated Rector to commit 0ff50c06d0c90ed0a678fd56261ab40b25f8b29f
0ff50c06d0 [Reflection] Reduce Scope pulling on ReflectionResolver (#4548)
2023-07-20 07:43:17 +00:00
Tomas Votruba 1463cdd31a Updated Rector to commit d64a761597a5e2f8b9158c770dcad5de08286f69
d64a761597 [Php70] Remove $scope->isInClass on Php4ConstructorRector (#4507)
2023-07-13 16:34:50 +00:00
Tomas Votruba 7312a4cf9b Updated Rector to commit d4be167d7e1bc3940db01d3a2096df7aa9cebe1c
d4be167d7e Fix trait rename in Php4ConsturctorRector (#4487)
2023-07-12 08:11:47 +00:00
Tomas Votruba b326a57561 Updated Rector to commit 805b7b7d39fcd989873452ddbbd57e2a76150022
805b7b7d39 [Performance] Do not traverse current and children on context check Break_ and If_ (#4271)
2023-06-18 06:22:16 +00:00
Tomas Votruba a80b7eaeaf Updated Rector to commit 3d07c26d3efc4c0c16cbbe1fb347114e0178cc5e
3d07c26d3e [Php70] Remove parent lookup for Break_ inside Switch_ on BreakNotInLoopOrSwitchToReturnRector (#4269)
2023-06-18 05:21:33 +00:00
Tomas Votruba 503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00
Tomas Votruba 3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba 8135dd31be Updated Rector to commit 27ac0efdca63485c6e0ee27086cda9bc7b2e6c17
27ac0efdca Remove parent node lookup (#4138)
2023-06-09 16:23:18 +00:00
Tomas Votruba fc7326e2ba Updated Rector to commit e5e33ebc3be86879d802690ee851bcc923a5e5f6
e5e33ebc3b Use class reflection do work with enum suffix (#4134)
2023-06-09 15:36:48 +00:00
Tomas Votruba f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba 9e103260ec Updated Rector to commit 2f3e9be0ae108c75f9de8fbf2ea92f0393ad9839
2f3e9be0ae [DX] Test BetterNodeFinder with Laravel container (#4106)
2023-06-08 14:23:03 +00:00
Tomas Votruba b02fdd55d1 Updated Rector to commit 8cc8c7cb2686340878b6a0b82f782cf86b7a3d3f
8cc8c7cb26 Fix StaticCallOnNonStaticToInstanceCallRector to skip parent's parent's method calls. (#4098)
2023-06-07 13:21:23 +00:00
Tomas Votruba bc7911e5d1 Updated Rector to commit a61fbf265d2995453ad8d9f12b6bb00ff1937162
a61fbf265d Remove removeNode() from couple rules (#4083)
2023-06-05 13:42:47 +00:00
Tomas Votruba 917ce32d7a Updated Rector to commit ddcc807ffcdf24c49889125682d1bcb223387d09
ddcc807ffc Make use of REMOVE_NODE return constant in refator() method (#4075)
2023-06-05 09:32:57 +00:00
Tomas Votruba 1f621e91a4 Updated Rector to commit 88eed987cc361166359c158ffd22d264d165aa8b
88eed987cc Ensure check isFirstClassCallable() before node->getArgs() on CallLike (#4049)
2023-06-02 12:32:12 +00:00
Tomas Votruba 7587e17e7b Updated Rector to commit d8e8a34a606b1e0b0a1a674a4e008822bbedf624
d8e8a34a60 Refactor PARENT_NODE away from EregToPregMatchRector (#3973)
2023-05-26 13:00:21 +00:00
Tomas Votruba 5a424135e9 Updated Rector to commit a8fdf00925e9b46f3372da01d90d52780d1e802a
a8fdf00925 [PHP 7.0] Add IfIssetToCoalescingRector (#3878)
2023-05-17 09:47:50 +00:00
Tomas Votruba 3847b0c3b5 Updated Rector to commit d2ae72e1fe616bb5c2d98c497a59991cfb5cca55
d2ae72e1fe Remove NEXT_NODE from IfToSpaceshipRector (#3860)
2023-05-16 12:50:39 +00:00
Tomas Votruba da149bb5b0 Updated Rector to commit 645071a650fc50d7e084378facaebcc868a52ba1
645071a650 Add test fixture for sprintf number + make use of getArgs() to get always an Arg type (#3822)
2023-05-13 17:20:02 +00:00
Tomas Votruba e947b0aeed Updated Rector to commit 218d1dd561c49e3afbbaa60fa85b6fd327e62dac
218d1dd561 Update docs (#3798)
2023-05-11 13:07:24 +00:00
Tomas Votruba 8afa5f961e Updated Rector to commit 074b1781b3fa7c7e23470c57ab85c0bd5fe0bfd2
074b1781b3 Remove RemoveUnusedVariableAssignRector, as could be breaking code in order of excution and hard to do reliable (#3793)
2023-05-11 07:56:32 +00:00
Tomas Votruba 34a9ea6ade Updated Rector to commit c63dd46e8d8881b576cee60ef09d68f52789a5ee
c63dd46e8d Drop AttributeKey::SCOPE in Rector-classes (#3790)
2023-05-10 18:50:31 +00:00
Tomas Votruba 91de512bfa Updated Rector to commit 3f0753eca0da687f51d0c4ad1c09e689bd813e43
3f0753eca0 [Php70] Skip curly named variable on ThisCallOnStaticMethodToStaticCallRector (#3779)
2023-05-09 07:47:22 +00:00
Tomas Votruba 8af1a1213f Updated Rector to commit 1e052f588331717f87a8d610db6eb7f89f8690d3
1e052f5883 [cleanup] Make use of getArgs(), remove ignored from phpstan (#3771)
2023-05-08 12:54:32 +00:00
Tomas Votruba af500df8f4 Updated Rector to commit f6c4edcd0c3feaad4abc075bae39474ac34bb82d
f6c4edcd0c [CodeQuality] Add CleanupUnneededNullsafeOperatorRector (#3767)
2023-05-08 10:34:10 +00:00
Tomas Votruba 39697489d4 Updated Rector to commit 5a32ed95b75b179e77c14a83a65f2eff1f1474b8
5a32ed95b7 [cleanup] Make use of getArgs(), remove ignores from phpstan.neon (#3770)
2023-05-08 10:34:06 +00:00
Tomas Votruba a93a36635a Updated Rector to commit fb89e317c52fb8a16e2db18edb80172adb17014e
fb89e317c5 [TypeDeclaration] Add WhileNullableToInstanceofRector (#3680)
2023-04-24 11:18:26 +00:00
Tomas Votruba f5640c1359 Updated Rector to commit 5e5681d9edbb438b5782b45fde6e88650aa3843f
5e5681d9ed [NodeRemover] Use return null after ->removeNode() (#3558)
2023-04-03 17:20:08 +00:00
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 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 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 6025307990 Updated Rector to commit c80cd6f1f03f6f4e1b1aee6504126699e6a06fe3
c80cd6f1f0 [TypeCoverage] Add EmptyOnNullableObjectToInstanceOfRector (#3230)
2022-12-20 21:37:46 +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 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 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 967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +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 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