Commit Graph

2624 Commits

Author SHA1 Message Date
Tomas Votruba
ce84017a24 Updated Rector to commit f6090319c24eb98de56d09353c24b5c30da9e7fc
f6090319c2 [PHPStan] Reduce PHPStan errors for narrow public - take 3 (#2674)
2022-07-17 12:27:00 +00:00
Tomas Votruba
da70700f98 Updated Rector to commit ce32685688660a000848322caadcf336bfc282f8
ce32685688 [PHPStan] Reduce PHPStan errors for narrow public - take 2 (#2673)
2022-07-17 01:16:52 +00:00
Tomas Votruba
46dd47dd4e Updated Rector to commit ac94ddd5bd269b17afc339f39af711c02d56b34a
ac94ddd5bd [PHPStan] Reduce PHPStan errors for narrow public - take 1 (#2672)
2022-07-16 14:24:54 +00:00
Tomas Votruba
5bce2cfaec Updated Rector to commit 97ef9ff17fb2a92141621baccae2f52d9659d0e6
97ef9ff17f Improve namespace names validation (#2670)
2022-07-16 12:31:38 +00:00
Tomas Votruba
09e7c38ed0 Updated Rector to commit e302870bd68ae670fdaffe529d26b5e1c5347408
e302870bd6 Improve RectorAssert tests + add assert name on rename configs (#2669)
2022-07-16 11:25:49 +00:00
Tomas Votruba
4b2bd56de7 Updated Rector to commit 6577da612c2824c2add06721b903de4cd438631e
6577da612c [DX] Add input validation for method, property and function name to avoid invalid output ast (#2668)
2022-07-16 09:41:53 +00:00
Tomas Votruba
587cd1ea1b Updated Rector to commit e8d0d572934d5faec64d480d9cd985a3823c9c0a
e8d0d57293 Fix getter method property substitution when the readable types don't match. (#2667)
2022-07-15 23:16:52 +00:00
Tomas Votruba
6f2ea78a3d Updated Rector to commit 12ab2ac8277a0899e2440ea36fb50ace4299f444
12ab2ac827 Fix test to only resolve to known classes (#2663)
2022-07-15 20:47:06 +00:00
Tomas Votruba
a05f4bdb4d Updated Rector to commit db7012edc116426e441645abdc1cffcb8c47ee85
db7012edc1 [Php80] Add implements interface support on single file on AddParamBasedOnParentClassMethodRector (#2660)
2022-07-15 15:03:05 +00:00
Tomas Votruba
0077120e40 Updated Rector to commit db7012edc116426e441645abdc1cffcb8c47ee85
db7012edc1 [Php80] Add implements interface support on single file on AddParamBasedOnParentClassMethodRector (#2660)
2022-07-15 08:20:20 +00:00
Tomas Votruba
ead00ac355 Updated Rector to commit 84012e4ac915dd5d8e7527bffdec302d53dc222e
84012e4ac9 Static type improvements (#2662)
2022-07-15 08:14:37 +00:00
Tomas Votruba
f75d563163 Updated Rector to commit 8a6b70456e536174d88a29c865bed73a6fa89534
8a6b70456e [Core] Move check CREATED_BY_RULE attribute from AbstractRector into RectifiedAnalyzer (#2665)
2022-07-15 08:02:59 +00:00
Tomas Votruba
4b78498132 Updated Rector to commit 328c43713e7b7ec77675637582117619af012985
328c43713e static fixes (#2661)
2022-07-14 22:29:28 +00:00
Tomas Votruba
24b5f6d999 Updated Rector to commit 14b5cb1d6747f44e827dcce2160105dc17496927
14b5cb1d67 [TypeDeclaration] Skip property exists in parent on TypedPropertyFromStrictConstructorRector (#2659)
2022-07-14 00:42:36 +00:00
Tomas Votruba
9d2c3a2853 Updated Rector to commit ae7648ed92396d39b4d364328312250b2c66f40e
ae7648ed92 [CodingStyle] Add StaticClosureRector (#2658)
2022-07-13 20:35:23 +00:00
Tomas Votruba
2747e037dd Updated Rector to commit 743fef03d939a8a4fc4aa9364df057854e97e5c7
743fef03d9 [CodingStyle] Add StaticArrowFunctionRector (#2657)
2022-07-13 16:07:41 +00:00
Tomas Votruba
4ddedc166e Updated Rector to commit b1ae9a141523ee35af1f63aab39d945e8df03275
b1ae9a1415 [DeadCode] Handle crash on indirect parent BinaryOp on RemoveDuplicatedInstanceOfRector (#2652)
2022-07-11 13:39:30 +00:00
Tomas Votruba
10beeee699 Updated Rector to commit aae75c63d5b30a61bcd9fae806ee201530a54669
aae75c63d5 [Php74] Skip TypedPropertyRector on final class by @final docblock (#2654)
2022-07-11 13:39:15 +00:00
Tomas Votruba
5741d7a8f3 Updated Rector to commit 5debc09c986ee0d92de270d4cd170f6285c430e8
5debc09c98 [TypeDeclaration] Skip modififed type between assign and return on ReturnTypeFromStrictNewArrayRector (#2651)
2022-07-10 17:47:25 +00:00
Tomas Votruba
0837a1f067 Updated Rector to commit 7e1c2bb2b9a0b8d5342499e0dbb8ebee921769d0
7e1c2bb2b9 [TypeDeclaration] Skip Type modified between Assign and Return_ on ReturnTypeFromReturnNewRector (#2650)
2022-07-10 15:47:24 +00:00
Tomas Votruba
368ad1b2c7 Updated Rector to commit f5896ace8c46fcfb1936946052e57623cced7f60
f5896ace8c [automated] Apply Coding Standard (#2649)
2022-07-10 00:42:06 +00:00
Tomas Votruba
fe7e52ca87 Updated Rector to commit d3cb26f2d3de667ace15710e5d52f2be61dd9613
d3cb26f2d3 DependencyClassMethodDecorator: Prevent duplication of arguments (#2643)
2022-07-09 19:04:30 +00:00
Tomas Votruba
02fd732f10 Updated Rector to commit 17ba943afd637b6df317a646c9406318aeb2848a
17ba943afd [TypeDeclaration] Skip assign override in ReturnTypeFromReturnNewRector (#2648)
2022-07-09 15:11:27 +00:00
Tomas Votruba
42d59f4003 Updated Rector to commit e8e2db769d857346202bc0f59ab4a618ee5b5202
e8e2db769d [TypeDeclaration] Add assigned new to variable in ReturnTypeFromReturnNewRector (#2647)
2022-07-09 14:55:41 +00:00
Tomas Votruba
8b3c974a42 Updated Rector to commit fba410bf6ed6da0657cb8ec939a22ad3988fc4ad
fba410bf6e [StrictTypes] Add MethodCall/StaticCall to ExclusiveNativeCallLikeReturnMatcher (#2646)
2022-07-09 14:14:37 +00:00
Tomas Votruba
3f8078b17e Updated Rector to commit f9916a10977a7000c126a01e17bf7c6f69ccf737
f9916a1097 Clean up PHPStan ignore errors (#2645)
2022-07-09 09:15:55 +00:00
Tomas Votruba
3e3d9cabe0 Updated Rector to commit 02cec7ebc43469d599cc6a66945e239267626ed6
02cec7ebc4 [DeadCode] Skip global and static variable on ReturnEarlyIfVariableRector (#2642)
2022-07-08 21:40:34 +00:00
Tomas Votruba
c2a85841bd Updated Rector to commit bf92b9c360eccb0a95b3b7f4a41efc4f875e5723
bf92b9c360 [DeadCode] Skip global and static variable on RemoveJustVariableAssignRector (#2641)
2022-07-08 21:39:04 +00:00
Tomas Votruba
6e01478f82 Rector 0.13.8 2022-07-07 09:46:05 +00:00
Tomas Votruba
239f91295e Updated Rector to commit b67bf649899000a913c4c91ec7ce43b165aa471d
b67bf64989 move ParamTypeByParentCallTypeRector to type-declaration-strict set
2022-07-07 09:23:09 +00:00
Tomas Votruba
336a52b5de Updated Rector to commit 22f2acadf73bc00a350b6b457db51eb5e0353d89
22f2acadf7 [TypeDeclaration] Do not change more detailed return doc on ReturnTypeFromStrictNewArrayRector (#2638)
2022-07-07 09:00:19 +00:00
Tomas Votruba
e86c09a91b Updated Rector to commit 7916cd907d55e32e9711ee7dc07ed45016eff152
7916cd907d [DX] Remove doctrine collection responsibility to TypedPropertyRector (#2640)
2022-07-06 19:39:27 +00:00
Tomas Votruba
331fec3c26 Updated Rector to commit e6cc503e24bbbc362d6e05b4f4a322ff97c09457
e6cc503e24 remove memory limit (#2639)
2022-07-06 19:24:32 +00:00
Tomas Votruba
920b431195 Updated Rector to commit 53bddfb185b596a354ac946cec2788a169ae4fe6
53bddfb185 [DX] make use of TypeCombinator to detect null type (#2637)
2022-07-06 12:58:08 +00:00
Tomas Votruba
81662109e0 Updated Rector to commit 649e5119376355e4d009f5db569b3785d10aaa37
649e511937 [TypeDeclaration] Add TypedPropertyFromStrictSetUpRector (#2636)
2022-07-06 11:56:20 +00:00
Tomas Votruba
4c0b7dbc90 Updated Rector to commit 3f877913606cc29dd71cf937119b90177ad2b14c
3f87791360 [Core] Refactor AbstractRector::enterNode() on return single Node (#2635)
2022-07-06 09:03:07 +00:00
Tomas Votruba
4734e9dd3e Updated Rector to commit 2267ca2a16768e21da5fbfff53844ab5fb87f264
2267ca2a16 [DeadCode] Do not remove first class callable VariadicPlaceholder arg on RemoveUnusedPrivateMethodParameterRector (#2634)
2022-07-05 18:24:55 +00:00
Tomas Votruba
ff718bc107 Updated Rector to commit 329b4f2e6f13394b56eb4ad01e020fc651fc83d5
329b4f2e6f [NodeTypeResolver] Refactor ParametersAcceptorSelectorVariantsWrapper to pass CallLike instead of Arg (#2632)
2022-07-05 07:33:24 +00:00
Tomas Votruba
89aeab0334 Updated Rector to commit d7a1c70813cbddee2048769afc870bde24be9225
d7a1c70813 [Php80] Skip no default on case collection assign on ChangeSwitchToMatchRector (#2631)
2022-07-04 21:30:24 +00:00
Tomas Votruba
6ee0c41d99 Updated Rector to commit 8c8def55a0b14847b08bd05049d4dbe8669cc64e
8c8def55a0 [CodingStyle] Handle VarConstantCommentRector+NewlineAfterStatementRector (#2629)
2022-07-04 17:02:56 +00:00
Tomas Votruba
a40cc18430 Updated Rector to commit 9ab8ce06cbf1f5244d90fcd4e193784f8c13b8ef
9ab8ce06cb [Core] Return early NodeTraverser::STOP_TRAVERSAL on referenced  is true on ParamAnalyzer (#2630)
2022-07-04 14:51:17 +00:00
Tomas Votruba
b050f5de99 Updated Rector to commit a70d0e5518260479d055a0d5a90e28e43cad58f7
a70d0e5518 [Php54] Rename ArrayToShortArrayRector to LongArrayToShortArrayRector (#2628)
2022-07-03 23:03:40 +00:00
Tomas Votruba
043ee19675 Updated Rector to commit 3582024a0d125b8f1706a5c8114f4dbc0a3b0fa1
3582024a0d [docs] Add downgrade PHP
2022-07-03 22:03:53 +00:00
Tomas Votruba
0e7a81986d Updated Rector to commit 931c1472c6676e224979d3910552a3025c4903e9
bcc6764002 add preload for split package 931c1472c6 cs
2022-07-03 21:50:48 +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
175fded020 Updated Rector to commit f8221e3e21c487f2d18707f7b979ef6607204826
f8221e3e21 [CodeQuality] Fix CompactToVariablesRector to resolve values when the compact() is called (#2627)
2022-07-03 20:44:15 +00:00
Tomas Votruba
b682e0bcdf Updated Rector to commit 646d1888a42854bfa2af3b7537b0e1efbeccaf0a
646d1888a4 [Transform] Remove CallableInMethodCallToVariableRector as very narrow use case and sensitive to wrong change (#2625)
2022-07-03 20:35:15 +00:00
Tomas Votruba
3d95b4f79c Updated Rector to commit f78af109208cfe6c217a89ecd80fb7a5a5c518e9
f78af10920 [EarlyReturn] Remove ReturnAfterToEarlyOnBreakRector as risky and turning around next/previous nodes (#2624)
2022-07-03 20:28:06 +00:00
Tomas Votruba
606cd7be37 Updated Rector to commit 8eedf1878f6882c8cba5b696613828a6ae15790d
8eedf1878f [Php71] Skip First Class Callable on RemoveExtraParametersRector (#2622)
2022-07-03 17:06:40 +00:00
Tomas Votruba
76fb7eb0e9 Updated Rector to commit dfc6e1d9c05a4ab0c861332298d3184763d9ebfb
dfc6e1d9c0 [DeadCode] Handle edge cases on RemoveJustVariableAssignRector (#2621)
2022-07-03 14:34:26 +00:00