5444 Commits

Author SHA1 Message Date
Tomas Votruba
89c1a25d91 Updated Rector to commit aebf30995293f3ba2cb6bb2d10e3084f7e925a11
aebf309952 [StaticTypeMapper] Remove parent lookup on NameScopeFactory (#4252)
2023-06-17 10:37:31 +00:00
Tomas Votruba
17b9256239 Updated Rector to commit 1d262193e2c28acd5e61733de4a067e30eb51936
1d262193e2 [NodeTypeResolver] Remove findParentType() on NameTypeResolver (#4199)
2023-06-17 06:21:36 +00:00
Tomas Votruba
4bac0a1b1b Updated Rector to commit 8263d9097dd362abd5f9f3ffa6aa560b2abffa8d
8263d9097d [StaticTypeMapper] Remove findParentType() on NameNodeMapper (#4200)
2023-06-17 04:55:00 +00:00
Tomas Votruba
e3e6d2b7a1 Updated Rector to commit 7b5102670f0a290038229f8e3bb690e2336920b9
7b5102670f [NodeTypeResolver] Remove parent lookup on ClassRenamePhpDocNodeVisitor (#4248)
2023-06-17 00:19:52 +00:00
Tomas Votruba
ca2ed9bbb4 Updated Rector to commit 3d4a86c31511bda1ded00a70ed36c72849d19824
3d4a86c315 [ReadWrite] Remove parent lookup on ArrayDimFetchParentNodeReadAnalyzer (#4239)
2023-06-16 10:32:41 +00:00
Tomas Votruba
d793888f8a Updated Rector to commit 53c6c5fcaf92b3ff40b6f45e476ff981b9028e95
53c6c5fcaf Remove Kind from doc mapper, as used just once (#4234)
2023-06-16 03:34:15 +00:00
Tomas Votruba
a17063fb1b Updated Rector to commit fb327f2b85a05597b4505321887720febd99de3d
fb327f2b85 [NodeTypeResolver] Speed up Variable Variable in Assign detection (#4229)
2023-06-14 14:32:42 +00:00
Tomas Votruba
41a5192158 Updated Rector to commit fbacc52a08ba45caf4f4c655da11a2ed28a92dea
fbacc52a08 [NodeTypeResolver] Move Process Assign in different method on PHPStanNodeScopeResolver (#4228)
2023-06-14 14:21:17 +00:00
Tomas Votruba
4144428ff7 Updated Rector to commit 984f7f2f1481a00b96a20804586fb4da58497ac3
984f7f2f14 [CodeQuality] Handle crash on variable variable on OptionalParametersAfterRequiredRector (#4226)
2023-06-14 13:54:50 +00:00
Tomas Votruba
f4f965b7ba Updated Rector to commit dac6b46cdbd4a7820d923af040d1f8627faced39
dac6b46cdb [Docblock] Ensure update Refactored php_doc_info after keep comments on ClassMethod on keep comments (#4221)
2023-06-14 05:36:12 +00:00
Tomas Votruba
3c126cf5a5 Updated Rector to commit e11e77f6c345558fa8f6593a26c2a3c012b8d581
e11e77f6c3 [Docblock] Ensure update Refactored php_doc_info after keep comments on ClassMethod on Property (#4220)
2023-06-14 05:18:28 +00:00
Tomas Votruba
4c28e357ca Updated Rector to commit 20ec11e73d8998f9ad7533c8f179ee7be8e2abdf
20ec11e73d [Docblock] Move DocBlockUpdater service usage from AbstractRector to PhpDocTypeChanger (#4215)
2023-06-14 04:39:10 +00:00
Tomas Votruba
5712e3dd40 Updated Rector to commit b4eb417407360b419e71eaa7609209a1597441e2
b4eb417407 Remove ReturnArrayClassMethodToYieldRector, add to PHPUnit Rector (#4213)
2023-06-13 16:24:24 +00:00
Tomas Votruba
adf2c53a99 Updated Rector to commit d90d3210e4ccd796347f947ba822705f23457c8c
d90d3210e4 [NodeTypeResolver] Remove findParentType() on PropertyFetchTypeResolver (#4202)
2023-06-12 18:22:47 +00:00
Tomas Votruba
bb950fe64d Updated Rector to commit 58047d4091da07f2c221916be58d6bfefc027a43
58047d4091 [PostRector] Remove findParentType() on UseAddingPostRector (#4201)
2023-06-12 18:08:32 +00:00
Tomas Votruba
44175be035 Updated Rector to commit c0aa1c28815799b0744977f40c09a8197db7d4b4
c0aa1c2881 [NodeTypeResolver] Remove findParentType() on ClassMethodOrClassConstTypeResolver (#4198)
2023-06-12 16:35:17 +00:00
Tomas Votruba
9f92344062 Updated Rector to commit ccd9d7469a875a121485ab0fed65446428ce9246
ccd9d7469a  [StaticTypeMapper] Remove findParentType() on IdentifierTypeMapper  (#4197)
2023-06-12 16:18:07 +00:00
Tomas Votruba
ff28aaca4c Updated Rector to commit 21f8014b30f4a4230f787ca1698a2c53d6d5f18a
21f8014b30 [DI] Autowire annotation to attribute mapper via tags (#4190)
2023-06-12 10:45:32 +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
665558472d Updated Rector to commit 3d31e31f3a4452a52a5b2bdd393d90e07b84e8a6
3d31e31f3a [NodeTypeResolver] Remove parent lookup on TypeComparator (#4179)
2023-06-11 08:57:05 +00:00
Tomas Votruba
bc5f802deb Updated Rector to commit d3e37c45f144a5a100c94847cd1324f972f05089
d3e37c45f1 [NodeTypeResolver] Reduce getAttribute call on PHPStanNodeScopeResolver (#4162)
2023-06-10 13:04:39 +00:00
Tomas Votruba
f67dcbaeac Updated Rector to commit f8c6c5cb6a23ce48ddd576dffceff52d440c4a07
f8c6c5cb6a Remove parent node from RenameMethodRector (#4154)
2023-06-10 09:11:14 +00:00
Tomas Votruba
484965351d Updated Rector to commit 21a233dac32e82d493a60fad86d2eb72cd568838
21a233dac3 Skipping: Use plain string functions instead of regex matching (#4153)
2023-06-10 08:40:50 +00:00
Tomas Votruba
a48c21e135 Updated Rector to commit ebfe96b4e08b26439c2341cd45e87a7bc5f314fb
ebfe96b4e0 Drop AttributeKey::SCOPE in ClassMethodReturnTypeOverrideGuard (#4144)
2023-06-09 17:30:44 +00:00
Tomas Votruba
b0e2693e28 Updated Rector to commit 8fe22e43b593963c405fac48c5d093e1575afd49
8fe22e43b5 Remove RemoveDelegatingParentCallRector as overly complex and usually on purpose (#4136)
2023-06-09 15:42:29 +00:00
Tomas Votruba
5fa193cb7d Updated Rector to commit a8db1e55f49cfbae43bdb89808498d7de04f365f
a8db1e55f4 Autowire array in explicit manner (#4133)
2023-06-09 14:39:36 +00:00
Tomas Votruba
e8fd540c34 Updated Rector to commit c15c53da47abd02e31b589f8bd92fe1484e872c9
c15c53da47 fix cs
2023-06-09 14:20:33 +00:00
Tomas Votruba
c896902f6c Updated Rector to commit 9889dd4f80444df8bb766f31e8a4d2eeb036ea47
9889dd4f80 [CodeQuality] Handle return is_array with conditional parameter inside on ReturnTypeFromStrictScalarReturnExprRector (#4132)
2023-06-09 13:52:18 +00:00
Tomas Votruba
ad74348451 Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 10:52:53 +00:00
Tomas Votruba
cdb2d0ed3f Updated Rector to commit f2509fa341525d3939073c5b4513f47ab8362fda
f2509fa341 Remove DoctrineAnnotationClassToAttributeRector as made for custom project, not useful for general use (#4127)
2023-06-08 22:24:02 +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
8b89240eee Updated Rector to commit ade49b3e9088c027b4a1a35d2e4228ae3375a00d
ade49b3e90 Various cleanups (#4125)
2023-06-08 21:35:09 +00:00
Tomas Votruba
04c348a97e Updated Rector to commit e012a3eb766f41016090dfa0aa982d9abd74a1e4
e012a3eb76 Make use of RenameClassNonPhpRector (#4124)
2023-06-08 21:03:14 +00:00
Tomas Votruba
4f94034308 Updated Rector to commit d003424800ab2b06eae432679cda73ee959cbad1
d003424800 From magic array autowire to explicit autowire (#4122)
2023-06-08 20:31:22 +00:00
Tomas Votruba
f6e608f751 Updated Rector to commit 6c3eb864d7a543b9e6f0379959bb98de489ab853
6c3eb864d7 Remove MultipleClassFileToPsr4ClassesRector as only PSR4 rule, bit risky and better handled with PHPStan + remove adding/removing files logic, use printer instead (#4117)
2023-06-08 17:22:43 +00:00
Tomas Votruba
7f654942fd Updated Rector to commit 18a2a0f37852ed6f5fb52c07e2c1137cf556f5b4
18a2a0f378 Add STRICT_BOOLEANS set (#4116)
2023-06-08 16:22:20 +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
1a06fc6c7b Updated Rector to commit b0873f7667fe9e5c2b178ce7bc8ce8007c105168
b0873f7667 Remove ActionInjectionToConstructorInjectionRector as rather for demo purposes, not practical (#4113)
2023-06-08 14:20:09 +00:00
Tomas Votruba
1d6fa53888 Updated Rector to commit 7f73d653b9ceb059f9d05e010a7c6120f23c77ac
7f73d653b9 [Traverser] Use specific Stmt: Declare_ and Namespace_ for init namespace stmt_key index on StmtKeyNodeVisitor (#4111)
2023-06-08 02:08:17 +00:00
Tomas Votruba
fd9beab0d3 Updated Rector to commit 2449c45be390824bb4230e17c776f68e1f66e89c
2449c45be3 [Core] Remove manual reindex stmt_key on ChangedNodeScopeRefresher::reIndexNodeAttributes() (#4109)
2023-06-07 15:52:33 +00:00
Tomas Votruba
6f867b1fcb Updated Rector to commit ae64ccd4e8ac4d3fbd956e8a60de1d27c598cb8f
ae64ccd4e8 [Traverser] Utilize statementDepth attribute on StmtKeyNodeVisitor to fill stmt_key in root of stmts (#4104)
2023-06-07 08:54:42 +00:00
Tomas Votruba
78750eb011 Updated Rector to commit a43321f493fe7772a427402c8bb15959fc24ca8b
a43321f493 [NodeTraverser] Traverse fill stmt_key after FileWithoutNamespaceNodeTraverser on PHPStanNodeScopeResolver (#4103)
2023-06-07 08:03:23 +00:00
Tomas Votruba
69b9b53c58 Updated Rector to commit aa0c9af2cc7f25d44f38c206da114268f0a397af
aa0c9af2cc Reduce count() usage on PHPStanNodeScopeResolver (#4102)
2023-06-07 07:52:19 +00:00
Tomas Votruba
348aef8907 Updated Rector to commit f4f94bcd4bb9fd9819ae11b1d2b06b74a078c205
f4f94bcd4b [NodeTraverser] Remove double apply FileWithoutNamespace, remove recursive lookup stmts on BetterStandardPrinter (#4097)
2023-06-07 02:01:28 +00:00
Tomas Votruba
33a3b51b31 Updated Rector to commit fdb96e2abcc809bf4ef6c30923f9f1fe0076b7c0
fdb96e2abc Remove node adding collector (#4095)
2023-06-06 22:16:48 +00:00
Tomas Votruba
075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba
1dba11eab4 Updated Rector to commit b852d706e3c13bc862a91acac245b313db357450
b852d706e3 Remove AffectedFilesCount as unused (#4094)
2023-06-06 13:19:57 +00:00
Tomas Votruba
189167959e Updated Rector to commit 701278e9882f33c2977753be99b08dd7aaf93997
701278e988 Remove node removing services, cleanup (#4093)
2023-06-06 12:07:27 +00:00
Tomas Votruba
687f5efeef Updated Rector to commit d9cf3d4b9f427691349d4c1fbe2160241c1585b8
d9cf3d4b9f Remove removeNode() from RemoveUnusedPrivatePropertyRector (#4092)
2023-06-06 11:55:37 +00:00