2370 Commits

Author SHA1 Message Date
Tomas Votruba
f2550b0de1 Updated Rector to commit f92d5deca3e1bc84e1022c5e612cfa44f63e597b
f92d5deca3 Fix Scalar_Encapsed node as dynamic in  (#2309)
2022-05-14 02:43:00 +00:00
Tomas Votruba
c50600c391 Updated Rector to commit 26d2589aba3ea8ee68140831df96ed44c89839ad
26d2589aba [Parallel] Fix --debug not working in parallel (#2307)
2022-05-13 16:18:07 +00:00
Tomas Votruba
1b5d975dcf Updated Rector to commit 4d3193425850a212b6e1e0442dadf1f0c6c321ae
4d31934258 Add new rule to add annotations from router configuration to symfony controllers (#2306)
2022-05-13 10:14:21 +00:00
Tomas Votruba
b03aa95fcc Updated Rector to commit 28dc9cebb2fd27102662a53fa063474643c6bbe5
28dc9cebb2 Prepare NamedToUnnamedArgs for PhpParameterReflection change in PHPStan 1.7 (#2305)
2022-05-13 09:29:14 +00:00
Tomas Votruba
cd95eb3dcc Updated Rector to commit 1ec5e2d35bb93bc7554c799b169c6a4d41223e22
1ec5e2d35b restore links
2022-05-12 19:20:31 +00:00
Tomas Votruba
99edeb9629 Updated Rector to commit 52ea41240ecfb6f0a8310082419b1e61feecd0c3
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
c37682bea7 Updated Rector to commit f0d68c75a15d20206cf6d10f43e3dad22d67b00a
f0d68c75a1 [Php82] Fixtures for skip combination writable + readonly on ReadOnlyClassRector (#2304)
2022-05-12 16:54:11 +00:00
Tomas Votruba
a9b5ab7bc7 Updated Rector to commit f0d68c75a15d20206cf6d10f43e3dad22d67b00a
f0d68c75a1 [Php82] Fixtures for skip combination writable + readonly on ReadOnlyClassRector (#2304)
2022-05-12 16:10:15 +00:00
Tomas Votruba
093c37f3c5 Updated Rector to commit 78aaf7ee0b1b03a9adeb76018c1ccffdd475c972
78aaf7ee0b [Php82] Add ReadOnlyClassRector (#2296)
2022-05-12 15:51:17 +00:00
Tomas Votruba
75c4d1eb67 Updated Rector to commit 93cf392561fec928e688fe55381da4d7c425498a
93cf392561 Add [file] + [rule] debug info on --debug + fix literal number downgrade type change to string (#2302)
2022-05-12 14:35:14 +00:00
Tomas Votruba
50d04ee8b8 Updated Rector to commit e88903f64e4075478882f15443cdffa7c16f3003
e88903f64e [Core] Improve UnreachableStmtAnalyzer: verify itself by recursive call (#2300)
2022-05-12 10:26:38 +00:00
Tomas Votruba
bca89e29da Updated Rector to commit 33cd52e703d44690b91106f4752b5786420fa2db
33cd52e703 Fix position of class after non-reachable stmts (#2299)
2022-05-12 09:11:03 +00:00
Tomas Votruba
e0323c00f8 Updated Rector to commit 39e552c4c97dbb23ada4470fa1b89773ce5bc2a3
39e552c4c9 Various little improvement (#2297)
2022-05-12 06:13:58 +00:00
Tomas Votruba
d967349fb9 Updated Rector to commit cd2a644e0c442b883fda86449148c67e0ae82ec4
cd2a644e0c [Core] Refactor RectifiedAnalyzer: early check against AbstractScopeAwareRector instead of Original node (#2295)
2022-05-12 05:20:59 +00:00
Tomas Votruba
412270b47d Updated Rector to commit 2ccb53592ef92eeb290d2671a1ab5de2b79ad271
2ccb53592e Improve indent types (#2294)
2022-05-11 22:54:59 +00:00
Tomas Votruba
ea968d80ae Updated Rector to commit 1026ede751ac760d6b8ee37105086898bc6fc60c
1026ede751 Remove requires from tests, as all tests run on PHP 8.1 (#2293)
2022-05-11 22:23:42 +00:00
Tomas Votruba
060b1642ed Updated Rector to commit 55be345ca9e2b0f29330656a1921dd82053981b2
55be345ca9 Various improvements (#2291)
2022-05-11 17:53:44 +00:00
Tomas Votruba
f0a799c4c1 Updated Rector to commit 17d200dfa6825602e214098e7d6637cae1d153f6
17d200dfa6 [DX] Skip extra comment, add RectorConfig->rules() (#2290)
2022-05-11 16:53:20 +00:00
Tomas Votruba
a48a02b46d Updated Rector to commit 9163864800fc12275062f70a2d490cfd1d55047f
9163864800 Remove DowngradeGeneratedScalarTypesRector as way hacky to particular string solution, better use patching (#2289)
2022-05-11 16:29:59 +00:00
Tomas Votruba
f3598b9c94 Updated Rector to commit b8ff9ab25c00a2d6f9ad86d6999be4cb5fd2020f
b8ff9ab25c Use ReflectionResolver when possible, use AbstractRector when scope not needed (#2288)
2022-05-11 14:46:44 +00:00
Tomas Votruba
099d77eea7 Updated Rector to commit 77dcd92d7f797981db7177562362b2afe5c5c4ec
77dcd92d7f [TypeDeclaration] Use AbstractRector on ParamTypeDeclarationRector (#2287)
2022-05-11 14:04:35 +00:00
Tomas Votruba
b16e5d61a8 Updated Rector to commit 4d358dade18ce5f6ba781a522eecf2155a44cdb0
4d358dade1 [Core] Allow any Node passed to ReflectionResolver::resolveClassReflection() (#2286)
2022-05-11 13:46:30 +00:00
Tomas Votruba
aa55f3e517 Updated Rector to commit 4d358dade18ce5f6ba781a522eecf2155a44cdb0
4d358dade1 [Core] Allow any Node passed to ReflectionResolver::resolveClassReflection() (#2286)
2022-05-11 13:35:32 +00:00
Tomas Votruba
7fc2669a02 Updated Rector to commit f5927bb55ea9eb406185d63c02ff02de8baa5c32
f5927bb55e [Core] Add ReflectionResolver::resolveClassReflectionSourceObject() method (#2285)
2022-05-11 13:10:39 +00:00
Tomas Votruba
a2b4ae0362 Updated Rector to commit a784b3da676ad404458335ca35fd8d9ea36430cc
a784b3da67 [TypeDeclaration] Use ReflectionResolver when possible on ControllerRenderMethodAnalyzer (#2284)
2022-05-11 12:03:36 +00:00
Tomas Votruba
3c86fb4a76 Updated Rector to commit a784b3da676ad404458335ca35fd8d9ea36430cc
a784b3da67 [TypeDeclaration] Use ReflectionResolver when possible on ControllerRenderMethodAnalyzer (#2284)
2022-05-11 11:43:08 +00:00
Tomas Votruba
45954eebdb Updated Rector to commit a784b3da676ad404458335ca35fd8d9ea36430cc
a784b3da67 [TypeDeclaration] Use ReflectionResolver when possible on ControllerRenderMethodAnalyzer (#2284)
2022-05-11 11:35:42 +00:00
Tomas Votruba
9dcd15012f Updated Rector to commit 32165444b1e0139e9c2245b964f47c584f2795e3
32165444b1 [Php52] Ensure return  only when node changed on ContinueToBreakInSwitchRector (#2283)
2022-05-11 07:15:27 +00:00
Tomas Votruba
7e928f8b96 Updated Rector to commit 12fa9407f734c847cb7739bd435ec42bc66a8f1c
12fa9407f7 [DeadCode] Skip @return static on return self when class is not final or in trait on RemoveUselessReturnTagRector (#2282)
2022-05-11 05:14:30 +00:00
Tomas Votruba
6feaa9edb7 Updated Rector to commit 8b4c7c5fd8ec764b1dc855d044658d91a81315b3
8b4c7c5fd8 [CodeQuality] Handle empty stmts on RemoveAlwaysTrueConditionSetInConstructorRector (#2281)
2022-05-11 01:22:20 +00:00
Tomas Votruba
a93d572d86 Updated Rector to commit ebd4c3fee68fd84af59218fc0b0c4d744f2c7929
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
7ada631151 Updated Rector to commit 1dd739aab6964f4409b58c4ca59b8b9673e92069
1dd739aab6 Update RemoveAlwaysTrueConditionSetInConstructorRector to return stmts (#2280)
2022-05-10 16:36:06 +00:00
Tomas Votruba
5a70fb04b1 Updated Rector to commit 27476c0909954feb7681318c66626408f0b9f396
27476c0909 add few fixtures (#2279)
2022-05-10 16:31:36 +00:00
Tomas Votruba
9306ff041a Updated Rector to commit fa073d440863d477d2ee844c1dfb6bf481a2ff1f
fa073d4408 [CodeQuality] Add SimplifyIfExactValueReturnValueRector (#2278)
2022-05-10 16:14:43 +00:00
Tomas Votruba
d72f56e566 Updated Rector to commit 30f2f9190987a0209e3e4aad209cce622c47595d
30f2f91909 [CodeQuality][DeadCode] Handle SimplifyUselessVariableRector+RemoveOverriddenValuesRector (#2277)
2022-05-10 12:38:09 +00:00
Tomas Votruba
447f9a972f Updated Rector to commit e5a45afba3becb12d8acbb6216dbeba623986c21
e5a45afba3 [CodeQuality][CodingStyle] Handle Scope not available error on CallableThisArrayToAnonymousFunctionRector+CountArrayToEmptyArrayComparisonRector (#2274)
2022-05-09 20:16:44 +00:00
Tomas Votruba
0632acb74b Updated Rector to commit 3c41b72a6b042f91645448d44200101b4b7d0be3
3c41b72a6b cleanup phpstan.neon (#2273)
2022-05-09 11:32:47 +00:00
Tomas Votruba
377fd1911e Updated Rector to commit a99574d6c57102de33751a50df726ed6cbabd6f9
a99574d6c5 Mini optimizations (#2272)
2022-05-09 11:16:33 +00:00
Tomas Votruba
0070cfd0cc Updated Rector to commit 4468743419d944b511ec2bcb5697c9a8a636b725
4468743419 [FEAT] refacto OrderAttributesRector (#2243)
2022-05-09 10:52:19 +00:00
Tomas Votruba
fa402052ff Updated Rector to commit 97a33aa69494836b44ce68e0803e2568233f3e06
97a33aa694 [Core] Remove is_string() check on glob loop data (#2267)
2022-05-09 09:51:17 +00:00
Tomas Votruba
ec43ca03ec Updated Rector to commit 97a33aa69494836b44ce68e0803e2568233f3e06
97a33aa694 [Core] Remove is_string() check on glob loop data (#2267)
2022-05-09 06:43:28 +00:00
Tomas Votruba
bb468e29f5 Updated Rector to commit 97a33aa69494836b44ce68e0803e2568233f3e06
97a33aa694 [Core] Remove is_string() check on glob loop data (#2267)
2022-05-08 23:26:26 +00:00
Tomas Votruba
56775932a2 Updated Rector to commit 60708d4501e143a77f70119bd2609df50782934e
60708d4501 [Core] Clean up repetitive is_file and manual register stub on BootstrapFilesIncluder (#2264)
2022-05-08 23:16:31 +00:00
Tomas Votruba
aa0465d388 Updated Rector to commit 975fdf113fab99b6120383211e997da2c820bd0a
975fdf113f [DX] Add StmtsAwareInterface to catch node by type (#2269)
2022-05-08 20:57:50 +00:00
Tomas Votruba
5b56a7d2ca Updated Rector to commit 5a122e2b821bdf496cb19abc59c3d13c4db7ed7a
5a122e2b82 [CodingStyle] Ensure node changed when return  on SymplifyQuoteEscapeRector (#2268)
2022-05-08 13:28:44 +00:00
Tomas Votruba
6dd3060af0 Updated Rector to commit ae2e38ed988ab87ed45bd9c4524a8f8b6a90c33e
ae2e38ed98 [CodeQuality] Skip empty array push args and no 2nd arg on ChangeArrayPushToArrayAssignRector (#2266)
2022-05-08 11:21:43 +00:00
Tomas Votruba
374898f010 Updated Rector to commit 88c9b8e20dbd62bbc371c933c81bd61e9283d555
88c9b8e20d Make ChangeArrayPushToArrayAssignRector use stmts (#2265)
2022-05-08 10:54:09 +00:00
Tomas Votruba
52fecaf9ca Updated Rector to commit e341cc26fe62e54810ebbaaa11aa45f098d3aa84
e341cc26fe [NodeNameResolver] Remove NodeNameResolver::isLocalPropertyFetchNamed() method, already handled at PropertyFetchAnalyzer::isLocalPropertyFetchName() (#2263)
2022-05-08 08:49:04 +00:00
Tomas Votruba
992aade98a Updated Rector to commit d89c23267c908bc128352cad5fd5763a0f413db5
d89c23267c [automated] Re-Generate Nodes/Rectors Documentation (#2262)
2022-05-08 00:33:36 +00:00
Tomas Votruba
f958d0a9c9 Updated Rector to commit fb8260c3a171ae29ac3a7c01e0dcb91ffb1077a0
fb8260c3a1 [DeadCode] Ensure no stmts check on RemovePhpVersionIdCheckRector (#2260)
2022-05-07 18:51:48 +00:00