Commit Graph

945 Commits

Author SHA1 Message Date
Tomas Votruba
c79a46ee2a Updated Rector to commit d68bc4ccf6fca72f748cb3b9b80264901094b3d6
d68bc4ccf6 bump deps
2022-08-07 12:27:55 +00:00
Tomas Votruba
eb23cc5b15 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 23:18:58 +00:00
Tomas Votruba
b9ad506421 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 22:58:46 +00:00
Tomas Votruba
089ad6e357 Updated Rector to commit 86682e4848dcfaecdb6dac7d07ffcb4cd47e69bf
86682e4848 Less doc, move from NodeRemover from AbstractRector - use directly or remove nodes right at the moment - that creates safer tree (#2741)
2022-08-06 21:53:15 +00:00
Tomas Votruba
ac89ac3559 Updated Rector to commit 502d0ad3805984c4e3c0a8c6636c1174068169fc
502d0ad380 [DeadCode] Handle assign in If_ cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2734)
2022-08-05 09:27:15 +00:00
Tomas Votruba
80bfee9246 Updated Rector to commit 685dc702a0dc6c8490bf1d9c39f8a8072e4333f0
685dc702a0 Ability to yield files with names (#2732)
2022-08-04 19:19:43 +00:00
Tomas Votruba
9063100051 Updated Rector to commit f99f19cd4328009bad8aaeab7d80f7d920628bca
f99f19cd43 Add class-string typehint to MethodCallRename (#2726)
2022-08-03 12:38:40 +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
3bfd3cdb42 Updated Rector to commit 7ca5096c12deb3d0619bfcf3ed61b0b6e6737b35
7ca5096c12 [Php56] Skip already initialized on next Stmt on AddDefaultValueForUndefinedVariableRector (#2721)
2022-07-29 16:30:03 +00:00
Tomas Votruba
6420a4d2a1 Updated Rector to commit ec291c4358636e29c026f2d42d575470cde25c76
ec291c4358 Fix/do not inline constructor default when readonly (#2720)
2022-07-28 19:32:54 +00:00
Tomas Votruba
28426800ab Updated Rector to commit d94ded9b22fff22e7923bb3158d56407e9f80897
d94ded9b22 stop on first id
2022-07-27 08:53:09 +00:00
Tomas Votruba
fad0b90180 Updated Rector to commit 3f3fc412140becdc86cc43a6ef87b5be495c9444
3f3fc41214 [CodeQuality][CodingStyle] Handle crash assert( >= 0 &&  >= 0) on combination CodeQuality and CodingStyle rules (#2707)
2022-07-25 20:13:13 +00:00
Tomas Votruba
8e5d4128e7 Updated Rector to commit b047c81634f8325b94d6e5b39fae6a599f65bca8
b047c81634 [automated] Re-Generate Nodes/Rectors Documentation (#2706)
2022-07-24 00:40:22 +00:00
Tomas Votruba
66a5285042 Updated Rector to commit cdf7bf581c6a417cfc8fc2b256597f30165d061f
cdf7bf581c [BetterPhpDocParser] Merge PhpDocInfo::getParamTagValueByName() with getParamTagValueNodeByName() (#2703)
2022-07-23 09:02:51 +00:00
Tomas Votruba
e383186790 Updated Rector to commit 764416672a588c4bd80084a853973773f9835690
764416672a Fix InlineArrayReturnAssignRector and ChangeReadOnlyPropertyWithDefaultValueToConstantRector collision (#2700)
2022-07-21 21:45:25 +00:00
Tomas Votruba
be073d8e55 Updated Rector to commit 1000cd51c57f7672d7e87c312cada4150bd98dd6
1000cd51c5 Attempt to fix incorrect doctrine table attribute values on php 8.1 (#2699)
2022-07-21 21:29:13 +00:00
Tomas Votruba
254b108ff5 Updated Rector to commit ff524c546b9bc82cd5f1dcf3d0870d40d2cd64df
ff524c546b bump deps (#2698)
2022-07-21 11:54:36 +00:00
Tomas Votruba
cce8c4f1c9 Updated Rector to commit aee31cebb921d7213c9ffdf802e7481221c0453c
aee31cebb9 change to list of configs (#2694)
2022-07-20 11:52:30 +00:00
Tomas Votruba
f01bc715ee Updated Rector to commit c74cda7cead18dc51061bd8540c64e98a6aec3b8
c74cda7cea Remove UnwrapFutureCompatibleIfFunctionExistsRector as very niche and specific (#2688)
2022-07-19 22:41:37 +00:00
Tomas Votruba
ab3565ff17 Updated Rector to commit 0ffaacaf3cf1094d3abfb3e0aee9543d12aa6490
0ffaacaf3c Cleanup set list from old sets (#2684)
2022-07-19 18:21:38 +00:00
Tomas Votruba
6f849831d7 Updated Rector to commit d030813bb995528a026e8ea3c84028fd47a4debd
d030813bb9 Clean up skip rector.php config (#2682)
2022-07-19 08:22:01 +00:00
Tomas Votruba
9244858669 Updated Rector to commit ddb08dc9dd6e4a279dd0d88633cdd51ca14581e0
ddb08dc9dd Clean up PHPStan ignore errors (#2681)
2022-07-19 08:04:51 +00:00
Tomas Votruba
9c5eda645c Updated Rector to commit c9ecc86d7e1621b435aed598317a6962e22e8039
c9ecc86d7e Cleanup of assign void (#2679)
2022-07-18 23:10:43 +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
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
4b78498132 Updated Rector to commit 328c43713e7b7ec77675637582117619af012985
328c43713e static fixes (#2661)
2022-07-14 22:29:28 +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
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
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
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
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
fbcfb0e30f Updated Rector to commit b45066c505a7bd3569819cee71706ebf0f763b6e
b45066c505 [dx] remove direct assigns (#2617)
2022-07-03 12:14:45 +00:00
Tomas Votruba
299f511d80 Updated Rector to commit 3e66b4a6348e2d106dc714760c946003bdc9807d
3e66b4a634 add multi args acceptor (#2605)
2022-07-02 09:10:33 +00:00
Tomas Votruba
2524b7ef68 Updated Rector to commit 89a7a4dfbb3e05a306c0f5b9950c28588d4f2af9
89a7a4dfbb [TypeDeclaration] Add ReturnTypeFromStrictScalarReturnExprRector (#2601)
2022-07-01 13:42:45 +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
8582284513 Updated Rector to commit ed92724c846790f1bab66cd81b3e20a6561694ed
ed92724c84 [DX] Try unused public const PHPStan rule (#2595)
2022-06-30 13:57:27 +00:00
Tomas Votruba
39d9381da5 Updated Rector to commit 407ad5fc5e
407ad5fc5e remove unused reference
2022-06-29 15:03:44 +00:00
Tomas Votruba
f0abc6fd73 Updated Rector to commit 250bcbbd2f
250bcbbd2f Bump PHPStan to 1.8 (#2588)
2022-06-29 11:05:24 +00:00
Tomas Votruba
6f73a90692 Updated Rector to commit d1807682bf
d1807682bf [Core] Apply auto fallback to use Scope from File when Node both doesnot has parent Node and Scope (#2587)
2022-06-29 09:55:25 +00:00
Tomas Votruba
7cf1d35492 Updated Rector to commit 1d037d151f
1d037d151f Clean up phpstan ignore errors (#2584)
2022-06-28 16:44:22 +00:00
Tomas Votruba
0b6c455d19 Updated Rector to commit 719191352d
719191352d clean up tweak package test workflow (#2583)
2022-06-28 14:46:16 +00:00
Tomas Votruba
846aa2b4c2 Updated Rector to commit e97dd8f360
e97dd8f360 Use rector downgrade php (#2582)
2022-06-28 12:42:29 +00:00
Tomas Votruba
bebb65659c Updated Rector to commit 92621698c2
92621698c2 [DX] Move UnionTypeFactory to NodeTypeResolver packages (#2581)
2022-06-27 20:29:12 +00:00
Tomas Votruba
ec6f7db42d Updated Rector to commit 89a684f2b7
89a684f2b7 [Core] Apply Scope refresh for Namespace_ and FileWithoutNamespace (#2569)
2022-06-27 08:32:39 +00:00
Tomas Votruba
0522de2970 Updated Rector to commit cf8cbcd4cb
cf8cbcd4cb [Core] Refactor CreatedByRuleDecorator to only set CREATED_BY_RULE on target Node when class is equals (#2573)
2022-06-26 13:53:02 +00:00
Tomas Votruba
a0db66f4be Updated Rector to commit 564c127680
564c127680 [fix] Skip doc-types in ReturnStrictTypeAnalyzer (#2562)
2022-06-25 13:21:09 +00:00
Tomas Votruba
b27efafdc1 Updated Rector to commit 38b6b60b24
38b6b60b24 Clean MethodToMethodCallRector (#2554)
2022-06-24 11:11:40 +00:00
Tomas Votruba
8643b18ecc Updated Rector to commit bab38355ae
bab38355ae [TypeDeclaration] Skip string type override nullable string return on AddReturnTypeDeclarationRector (#2559)
2022-06-23 20:42:36 +00:00
Tomas Votruba
a74b851a08 Updated Rector to commit 2907687792
2907687792 Fix @return on StaticDoctrineAnnotationParser::resolveAnnotationValue() (#2558)
2022-06-23 20:27:42 +00:00
Tomas Votruba
4522848db4 Updated Rector to commit 005ca33bcb
005ca33bcb [DowngradePhp80] Do not change correct Union array docblock to mixed[] on DowngradeUnionTypeDeclarationRector (#2555)
2022-06-22 22:21:39 +00:00
Tomas Votruba
09d862a443 Updated Rector to commit 83f2b16f0c
83f2b16f0c [cs] add static lambda rule [closes #2514]
2022-06-21 23:59:33 +00:00
Tomas Votruba
bb396cb5b1 Updated Rector to commit 6c713a776c
6c713a776c [DeadCode] Handle always terminated TryCatch on RemoveUnreachableStatementRector (#2545)
2022-06-21 06:34:28 +00:00
Tomas Votruba
9550950b4e Updated Rector to commit a16bc1b576
a16bc1b576 skip privatization, as unknown side effect (#2542)
2022-06-20 17:57:13 +00:00
Tomas Votruba
c1ace7d7d7 Updated Rector to commit d4ec140212
d4ec140212 [Php81] Skip str_replace() pass array subject on NullToStrictStringFuncCallArgRector (#2541)
2022-06-20 15:00:36 +00:00
Tomas Votruba
6df03b5f94 Updated Rector to commit d4ec140212
d4ec140212 [Php81] Skip str_replace() pass array subject on NullToStrictStringFuncCallArgRector (#2541)
2022-06-20 14:51:15 +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
f3c64cc79f Updated Rector to commit 1a3288b2d9
1a3288b2d9 [Transform] Handle with this->method() from current class on MethodCallToMethodCallRector (#2531)
2022-06-18 22:08:34 +00:00
Tomas Votruba
ad124eac3f Updated Rector to commit f2035db06d
f2035db06d fix wrong guard location (#2497)
2022-06-16 11:26:51 +00:00
Tomas Votruba
de3cb6a3c1 Updated Rector to commit f2035db06d
f2035db06d fix wrong guard location (#2497)
2022-06-16 11:12:10 +00:00
Tomas Votruba
80a3820ca7 Updated Rector to commit 10fd4c3498
10fd4c3498 [Php70] Refactor MultiDirnameRector by moving nestingLevel check to separate method (#2488)
2022-06-15 07:03:39 +00:00
Tomas Votruba
d88782de2e Updated Rector to commit b536a67738
b536a67738 [Scoped][e2e] Fix standalone rule test on scoped build (#2491)
2022-06-14 06:49:40 +00:00
Tomas Votruba
a3ff5f7dfe Updated Rector to commit aceb0e8a93
aceb0e8a93 bump deps (#2490)
2022-06-13 23:15:18 +00:00
Tomas Votruba
fa8e606d26 Updated Rector to commit 49fc61c1ff
49fc61c1ff Bump to Symplify 11 (#2489)
2022-06-13 23:08:50 +00:00
Tomas Votruba
b8c32ad549 Updated Rector to commit 6f164da439
6f164da439 [Php55] Handle crash on concat variable single quote on PregReplaceEModifierRector (#2483)
2022-06-13 07:49:24 +00:00
Tomas Votruba
a1d7c79c1b Updated Rector to commit 28ed5cf916
28ed5cf916 [automated] Re-Generate Nodes/Rectors Documentation (#2479)
2022-06-12 14:01:14 +00:00
Tomas Votruba
836530a699 Updated Rector to commit e1188e9bff
e1188e9bff [DeadCode] Skip has return reassign Coalesce Op on RemoveUnusedPrivatePropertyRector (#2477)
2022-06-11 15:50:57 +00:00
Tomas Votruba
7800c7ad15 Updated Rector to commit e1188e9bff
e1188e9bff [DeadCode] Skip has return reassign Coalesce Op on RemoveUnusedPrivatePropertyRector (#2477)
2022-06-11 14:03:15 +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
9cf6755b1b Updated Rector to commit 9679ed6d77
9679ed6d77 [DeadCode] Skip using coealesce assign operator on return on RemoveUnusedPrivatePropertyRector (#2476)
2022-06-11 12:21:18 +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
7fbc26bbc7 Updated Rector to commit 797cb38b88
797cb38b88 Clean PHPStan errors (#2475)
2022-06-10 14:48:54 +00:00
Tomas Votruba
aac6955d81 Updated Rector to commit a6fb82623b
a6fb82623b Bump to phpstan/phpdoc-parser 1.6.2 (#2473)
2022-06-10 12:53:57 +00:00
Tomas Votruba
a262e411c8 Updated Rector to commit db6623f608
db6623f608 Update phpdoc-parser conflict config to <1.6 on scoped build (#2472)
2022-06-10 09:57:49 +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
5953030010 Updated Rector to commit 56651d0190
56651d0190 use PHPStan 1.7.12, with new phpdoc-parser to fix endline issue
2022-06-09 12:53:21 +00:00
Tomas Votruba
6d1d83e43b Updated Rector to commit ca02184695
ca02184695 [Scoped] Remove e2e/container-configurator on scoped build (#2463)
2022-06-09 11:14:30 +00:00
Tomas Votruba
bfad5344a5 Updated Rector to commit d1b7a49e35
d1b7a49e35 [DeadCode][Php73] Ensure return  only when changed on RemoveDuplicatedCaseInSwitchRector+RegexDashEscapeRector (#2462)
2022-06-09 10:09:44 +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
f985e015b4 Updated Rector to commit e6ef575170e45ec3b37f9c907a58d43172103eb8
e6ef575170 expose rector running constant
2022-06-07 09:02: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
da1eb8d817 Updated Rector to commit bd0104d6c6
bd0104d6c6 [DX] Detach typo3 from core to allow stable growth of both packages (#2446)
2022-06-06 17:33:21 +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
3dab591b7e Updated Rector to commit ddd88a8800
ddd88a8800 [DX] Remove symlinks option to require safe way of providing explicit paths (#2443)
2022-06-06 11:33:16 +00:00
Tomas Votruba
062970bc82 Updated Rector to commit df5bd5fb79
df5bd5fb79 [DX] Make ClassAnnotationMatcher differentiate between known and unknown classes (#2319)
2022-06-06 08:39:49 +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
07c6c80c35 Updated Rector to commit 8b4df18bde
8b4df18bde [Renaming] Keep comment on RenameClassRector (#2439)
2022-06-05 06:56:15 +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
63ef476ebe Updated Rector to commit 70261b71b7
70261b71b7 [DeadCode] Fix known array type in empty if foreach (#2432)
2022-06-04 13:19:43 +00:00
Tomas Votruba
6677a82eb8 Updated Rector to commit 506c282f54
506c282f54 [Scoped] Exclude symfony/contracts/HttpClient/Test/HttpClientTestCase.php from parallel-lint check (#2429)
2022-06-04 10:45:13 +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