Commit Graph

16079 Commits

Author SHA1 Message Date
Tomas Votruba
8135dd31be Updated Rector to commit 27ac0efdca63485c6e0ee27086cda9bc7b2e6c17
27ac0efdca Remove parent node lookup (#4138)
2023-06-09 16:23:18 +00:00
Tomas Votruba
d11bfc6bb9 Updated Rector to commit af780c8f07bfe6fcf011789979369f03e279db44
af780c8f07 Removing parent node calls (#4137)
2023-06-09 15:59:30 +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
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
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
fb2569f52c Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 13:02:17 +00:00
Tomas Votruba
5518ca1f6b Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 12:23:12 +00:00
Tomas Votruba
d95266b60b Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 12:03:39 +00:00
Tomas Votruba
68277cb660 Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 11:28:50 +00:00
Tomas Votruba
f790a093ec Updated Rector to commit 390730a9c40cfad8ca6a089e2dee1b7e158e076e
390730a9c4 Remove propperty to add collector, add them directly or as a constructor dependency (#4131)
2023-06-09 11:00:38 +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
c0ebeabf68 Updated Rector to commit 2d13bc9773c3b7b91598312087c236c14b002d28
2d13bc9773 Remove NewArgToMethodCallRector as unused (#4130)
2023-06-08 23:27:12 +00:00
Tomas Votruba
2c295def16 Updated Rector to commit 82687502deb9d41ed79ed832baa09fe23f90d3f8
82687502de Avoid parent node lookup in RemoveEmptyClassMethodRector (#4129)
2023-06-08 23:05:51 +00:00
Tomas Votruba
08a4332d59 Updated Rector to commit 059783fb07cbe5bd2259d4634d32f563ce862de0
059783fb07 Remove MethodCallToMethodCallRector as unused (#4128)
2023-06-08 22:54:12 +00:00
Tomas Votruba
b9a035cc96 Updated Rector to commit 2c13033108f884fb007ccfa74d29e85cc726b985
2c13033108 Remove UnsetAndIssetToMethodCallRector as unused (#4123)
2023-06-08 22:35:24 +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
7e4800f37a Updated Rector to commit ce31e603b9679098ce089355fc0e68a11a10a9df
ce31e603b9 remove dump
2023-06-08 19:45:45 +00:00
Tomas Votruba
c0bedb9c23 Updated Rector to commit 0632b027242e12839cc564a5efec0594f3956543
f655aa0f68 make attribute groupr named explicit
79c26f4db6 rebase
0632b02724 misc
2023-06-08 19:44:16 +00:00
Tomas Votruba
7ceca5a857 Updated Rector to commit bf2fe78378130e72970cd41c8a4cc2f1807ab951
bf2fe78378 Various cleanup (#4121)
2023-06-08 19:43:06 +00:00
Tomas Votruba
2464e91763 Updated Rector to commit 754f2b31495ef47302a5db4783b2bf8b152ef2d0
754f2b3149 misc
2023-06-08 19:17:51 +00:00
Tomas Votruba
afe0b083f7 Updated Rector to commit d1b27e40825478194d10ef82aefd66a6bb5b5dc3
d1b27e4082 misc
2023-06-08 19:15:15 +00:00
Tomas Votruba
9b000bfc6d Updated Rector to commit 827b364d7e72e17b5903c368bc82b8b9cf3faec6
827b364d7e add commands optinally
2023-06-08 19:15:09 +00:00
Tomas Votruba
c1c2677bef Updated Rector to commit 3c7cba308f87667ee2c54b8d1673b64ae2cacf26
3c7cba308f try optional
2023-06-08 19:04:59 +00:00
Tomas Votruba
fdf6a88b62 Updated Rector to commit aebd3118751ebf1bf21e300b6de2ee35052a01ef
aebd311875 Remove RemoveAllowDynamicPropertiesAttributeRector as attribute is a comment on lower PHP versions, also rather downgrade rule (#4120)
2023-06-08 18:34:29 +00:00
Tomas Votruba
b9a2e1cfb3 Updated Rector to commit 923b590fd5aca0b1fd7033963332d3c3845af1c7
923b590fd5 Remove RemoveMethodCallParamRector, as unused (#4119)
2023-06-08 18:32:28 +00:00
Tomas Votruba
48bf71f740 Updated Rector to commit 8db9a6ff83fe5407e967000b2dfec772285de87a
8db9a6ff83 [DX] Autowire commands explicitly (#4118)
2023-06-08 18:28:01 +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
850512e46d Updated Rector to commit 4457cfad19971c45ff953b238f456590bb6fd67f
4457cfad19 Remove ConstantListClassToEnumRector as custom-made, not practical for enum upgrades (#4115)
2023-06-08 15:39:22 +00:00
Tomas Votruba
f486676c12 Updated Rector to commit 16b60d0f84d824f2eaafadd52650bd4ea84798e5
16b60d0f84 Make ConvertStaticPrivateConstantToSelfRector work for non-final classes, make part of code-quality set (#4114)
2023-06-08 14:55:39 +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
4e35c1eafd Updated Rector to commit 2d174631c410c5ec1767a28905206e2e678b546b
2d174631c4 [CodeQuality] Handle return new object and no return on ConsecutiveNullCompareReturnsToNullCoalesceQueueRector (#4112)
2023-06-08 10:08:29 +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
a97ef30b94 Updated Rector to commit fe33aad6cbff85882e60ef2461e929d5b1957456
fe33aad6cb [Printer] Rename method decorateInlineHTMLOrNopAndUpdatePhpdocInfo() to moveCommentsFromAttributeObjectToCommentsAttribute() (#4110)
2023-06-07 16:12:13 +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
87fdd5999d Updated Rector to commit 63816c03ac4b36a7fdaa28b5944a8fca9f9ed6b8
63816c03ac [CodeQuality] Handle throw after if on ConsecutiveNullCompareReturnsToNullCoalesceQueueRector (#4107)
2023-06-07 14:47:58 +00:00
Tomas Votruba
fb04ea18b8 Updated Rector to commit 71dc336750afb61b4766bad5c040ffd7a77f4741
71dc336750 [CodingStyle] Skip countable object on CountArrayToEmptyArrayComparisonRector (#4108)
2023-06-07 14:26:11 +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
1fdcfc8e63 Updated Rector to commit 3c9a2453294bed3e258935aad37d355c8251db4f
3c9a245329 Make SimplifyRegexPatternRector work without parent nodes + deprecate BetterNodeFinder and findParent* methods (#4105)
2023-06-07 12:49:26 +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