Commit Graph

16041 Commits

Author SHA1 Message Date
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
Tomas Votruba da05109534 Updated Rector to commit b7760eb6fcfd4d809723e4dfd54ece8d437baff0
b7760eb6fc [Scoper] Try enable DowngradeArrayIsListRector (#4096)
2023-06-06 23:13:47 +00:00
Tomas Votruba 6e39069a76 Updated Rector to commit c34d617b2fd6dae76117ec7569f825de38b93cba
c34d617b2f remove clean phpstan, as unused
2023-06-06 22:34:25 +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 104c8b43d1 Updated Rector to commit b8b1155ffe068cfb0a1a702dfd00e21bf711c46d
b8b1155ffe try polyfill is_list
2023-06-06 22:03:07 +00:00
Tomas Votruba 515eba1ef3 Updated Rector to commit b8b1155ffe068cfb0a1a702dfd00e21bf711c46d
b8b1155ffe try polyfill is_list
2023-06-06 17:02:20 +00:00
Tomas Votruba 075297ce56 Updated Rector to commit 0af705fb570340cb0e4fbc0b9e897b09bd172f5c
0af705fb57 debug
2023-06-06 16:41:24 +00:00
Tomas Votruba 84532f58cf Updated Rector to commit b852d706e3c13bc862a91acac245b313db357450
b852d706e3 Remove AffectedFilesCount as unused (#4094)
2023-06-06 15:06:12 +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
Tomas Votruba be6e24fe8c Updated Rector to commit ff21394bc2448bae7cfcf7e6b4be462a4bae104f
ff21394bc2 [Php80] Fix add default nullable type on ClassPropertyAssignToConstructorPromotionRector (#4091)
2023-06-06 10:31:04 +00:00
Tomas Votruba 3aecd9de93 Updated Rector to commit c567d5d44340e83f62e8599832af4019d7ef37b3
c567d5d443 Remove removeNode() from ClassPropertyAssignToConstructorPromotionRector (#4090)
2023-06-05 15:41:37 +00:00
Tomas Votruba 35c3aab2b4 Updated Rector to commit 2915ab78d47cbbc8c2c09e6154eef83b7f75cbf2
2915ab78d4 Remove removeNode() from RemoveUnusedPromotedPropertyRector (#4089)
2023-06-05 15:33:17 +00:00
Tomas Votruba 63ba316fef Updated Rector to commit d54d8b18a92f4248605bc90b5af2b2a22c39a93e
d54d8b18a9 Hook NewInInitializerRector to a Class_ node (#4088)
2023-06-05 15:06:32 +00:00
Tomas Votruba 7b96363ba3 Updated Rector to commit 408674025f7fc5295b5e67d7adaf11eca4dc1f24
408674025f Remove NewToConstructorInjectionRector as unused and only for demo purposes (#4087)
2023-06-05 14:41:35 +00:00
Tomas Votruba 368e973125 Updated Rector to commit be31c8faec553f9247f3c0d810648ec22b91b827
be31c8faec Remove ChangeGlobalVariablesToPropertiesRector as the scope might change after the variable is defined, better handle with PHPStan (#4086)
2023-06-05 14:37:00 +00:00
Tomas Votruba 54b25e4291 Updated Rector to commit 2dccbb6b176a836e174babbaf6611a0d4730c55c
2dccbb6b17 Remove removeNode() from RemoveDeadReturnRector, merge RemoveLastReturnRector to RemoveDeadReturnRector (#4085)
2023-06-05 14:01:36 +00:00
Tomas Votruba fc28a000c6 Updated Rector to commit cdc9e6b6d8ce2446e8860016997ad37e8d3b7d44
cdc9e6b6d8 Remove ArrayKeysAndInArrayToArrayKeyExistsRector as narrow, does not check variable usage and might be on purpose (#4084)
2023-06-05 13:46:42 +00:00
Tomas Votruba bc7911e5d1 Updated Rector to commit a61fbf265d2995453ad8d9f12b6bb00ff1937162
a61fbf265d Remove removeNode() from couple rules (#4083)
2023-06-05 13:42:47 +00:00
Tomas Votruba 1078587eae Updated Rector to commit 1fa8672242253aae77cd888400c5125d2e1fa9f5
1fa8672242 Remove removeNode() from RemoveDoubleAssignRector (#4082)
2023-06-05 10:21:40 +00:00
Tomas Votruba b6790aec99 Updated Rector to commit 391ea60a5123a06f4081fa3ff84c9d9fbf31dc1b
391ea60a51 Remove removeNode() from RemoveTraitUseRector (#4081)
2023-06-05 10:14:56 +00:00
Tomas Votruba 899f790edb Updated Rector to commit b743de6b8194322cd59eb8967b10d4b9ffb3fa1c
b743de6b81 Remove removeNode() in various rules (#4080)
2023-06-05 10:07:36 +00:00
Tomas Votruba 191b6c06a0 Updated Rector to commit efc3cf31ae7a14367f7d2f5b73838f5ebeebb064
efc3cf31ae [Core] Apply CreatedByRuleDecorator on is_int() on AbstractRector (#4077)
2023-06-05 10:03:19 +00:00
Tomas Votruba 0072d380e2 Updated Rector to commit 70085f47f7aef41fad22f3628a2c6a9822b6d9f4
70085f47f7 [FileProcessor] Show warning on has InlineHTML node if file has changed on PhpFileProcessor (#4079)
2023-06-05 09:59:52 +00:00
Tomas Votruba b6483cd8b4 Updated Rector to commit dab448289eef1d79fe75e61f8fda1da1b7f9eaab
dab448289e [NodeTypeResolver] Handle crash after next exit() on no namespaced code after removal next attribute (#4074)
2023-06-05 09:55:14 +00:00
Tomas Votruba 5697e833d8 Updated Rector to commit 8e80c7a5489a096b707281aded4ff4976bbb10b1
8e80c7a548 Remove removeNode() from RemovePhpVersionIdCheckRector (#4078)
2023-06-05 09:54:03 +00:00
Tomas Votruba 0a26126b5a Updated Rector to commit b60faa4203092b57ea4d1d2f977b46334adc2e51
b60faa4203 Remove TargetRemoveClassMethodRector, as IDE specific (#4076)
2023-06-05 09:37:45 +00:00
Tomas Votruba 917ce32d7a Updated Rector to commit ddcc807ffcdf24c49889125682d1bcb223387d09
ddcc807ffc Make use of REMOVE_NODE return constant in refator() method (#4075)
2023-06-05 09:32:57 +00:00
Tomas Votruba ee021e37ea Updated Rector to commit 21d43cfb3d62563f3f73424d2bdf36136056617d
21d43cfb3d Add REMOVE_NODE support to refactor() direct call (#4073)
2023-06-05 08:01:06 +00:00
Tomas Votruba c440a59574 Updated Rector to commit 063c488b9b6a4eefe4a65fb6236f0b00b0e14890
063c488b9b Remove removeNode() from RemoveEmptyMethodCallRector (#4071)
2023-06-04 22:44:01 +00:00
Tomas Votruba ad0058dd98 Updated Rector to commit 5f2ddbfd85c50c3baea67e02472640f50ba7b6a0
5f2ddbfd85 Remove removeNode() from RemoveDeadIfForeachForRector (#4072)
2023-06-04 22:38:07 +00:00
Tomas Votruba c832b39299 Updated Rector to commit 8f68eb4a72eafb3d942f86474b31eb7163ffb463
8f68eb4a72 [DependencyInjection] Remove deprecated constants support on ConfigureCallValuesCollector (#4070)
2023-06-04 21:51:05 +00:00
Tomas Votruba 5edc8437c3 Updated Rector to commit 0e9192f70cc10e4684adec85a0ab5f67c6afcad3
0e9192f70c Remove deprecated UnionTypesRector and NarrowUnionTypeDocRector, use strict-based rules from TypeDeclaration set instead (#4069)
2023-06-04 21:38:22 +00:00
Tomas Votruba 2813830091 Updated Rector to commit d288f4c41dbcd2a095a1cf11b3b4d6e989973394
d288f4c41d Remove removeNode() from RemoveUnusedPrivateMethodRector (#4067)
2023-06-04 18:10:51 +00:00
Tomas Votruba bd7d3c46f2 Updated Rector to commit cd776a822655f90311b0e1e925df138d24f147a1
cd776a8226 Remove removeNode() from RemoveDelegatingParentCallRector (#4066)
2023-06-04 18:09:35 +00:00
Tomas Votruba 18f8207b59 Updated Rector to commit 861022a70bd9f9c8b91f20c7dfacb0d297d33e9a
861022a70b Remove RemoveAlwaysTrueConditionSetInConstructor, as overly specific and not practical; better handle with PHPStan (#4065)
2023-06-04 17:57:18 +00:00
Tomas Votruba f0c9d40cc2 Updated Rector to commit 106bc8ed2efbf98e99c22d6098a78ec2d6588c58
106bc8ed2e Remove AttributeCompatibleAnnotationRector, as only for one-time migration of private project, not suitable for general use (#4064)
2023-06-04 17:52:08 +00:00
Tomas Votruba a21bcfc1f7 Updated Rector to commit 141923f2484a506bbd523021facb07d37575e62f
141923f248 Remove removeNode() from MultiExceptionCatchRector (#4063)
2023-06-04 17:44:36 +00:00