18745 Commits

Author SHA1 Message Date
Tomas Votruba
7ebf783415 Updated Rector to commit f3242bfadc709ca567975be62691944b5f8301ee
f3242bfadc [CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#6640)
2025-01-01 14:12:17 +00:00
Tomas Votruba
c29364dfcf Updated Rector to commit f3242bfadc709ca567975be62691944b5f8301ee
f3242bfadc [CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#6640)
2025-01-01 07:12:11 +00:00
Tomas Votruba
f3354fbbdb Rector 2.0.5 2.0.5 2024-12-31 13:11:55 +00:00
Tomas Votruba
2c903ab625 Updated Rector to commit c20860d38fabc003dff096168bbfd99479e9242a
c20860d38f Bump to PHPStan ^2.1.0 (#6639)
2024-12-31 10:01:10 +00:00
Tomas Votruba
84e1eb5aff Updated Rector to commit 97347fbed99e372bc2a6bd46c30f615c0be12d5f
97347fbed9 use vendor-patches main branch that already include php-parser 5.4.0 patch (#6638)
2024-12-30 12:24:44 +00:00
Tomas Votruba
f99d6f30c0 Updated Rector to commit 8834b334b5468636f08ed4c54994eff839a2fb81
8834b334b5 Bump to PHP-Parser ^5.4.0 with use patches fix-patch-php-parser-54 patches (#6637)
2024-12-30 12:17:51 +00:00
Tomas Votruba
baa2bd468d Updated Rector to commit 17d266fecf2392bd90b929948758c31898e959e2
17d266fecf [CodeQuality] Skip fopen() or die() on LogicalToBooleanRector on assign (#6635)
2024-12-30 11:21:43 +00:00
Tomas Votruba
376ef50115 Updated Rector to commit eb272ee7ab00184569bd327819d69a305e19fdcb
eb272ee7ab Temporary pin php-parser to 5.3.1 (#6636)
2024-12-30 11:20:22 +00:00
Tomas Votruba
8bafaa06b5 Updated Rector to commit dfe6f2d43c20b7883ad5354d59c859f3ad85cae4
dfe6f2d43c [DeadCode] Allow remove useless @var on typed class constant as well on RemoveUselessVarTagRector (#6633)
2024-12-28 20:22:06 +00:00
Tomas Votruba
24e1aacac4 Updated Rector to commit 7bbe9ba2af41fbb64a2817cd44d19665aa79f186
7bbe9ba2af [DX] Warn about ->withPhpSets() called multiple times, to avoid invalid set mix (#6632)
2024-12-27 15:39:44 +00:00
Tomas Votruba
59d44f7985 Updated Rector to commit 5f21af7a492f8be43972c1d89fa150ae9e37475c
5f21af7a49 Remove unused AssignVariableNameResolverInterface instances (#6631)
2024-12-27 13:23:06 +00:00
Tomas Votruba
df5de7b80d Rector 2.0.4 2.0.4 2024-12-26 23:06:19 +00:00
Tomas Votruba
37163bd4b8 Updated Rector to commit c3989ab162c9c99d06edde3ddb7337212febc5d3
c3989ab162 Clean up ignore phpstan errors (#6630)
2024-12-26 04:07:36 +00:00
Tomas Votruba
1a2bd6c7dd Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-26 00:50:22 +00:00
Tomas Votruba
b8e60e2db5 Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-25 12:39:51 +00:00
Tomas Votruba
af97af9007 Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-25 11:57:33 +00:00
Tomas Votruba
84d2a96fe5 Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-25 11:17:36 +00:00
Tomas Votruba
8d4228059d Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-25 10:59:25 +00:00
Tomas Votruba
b24cfd9322 Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-25 10:35:55 +00:00
Tomas Votruba
0c1978cd37 Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
ed433a87a3 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
2024-12-24 17:45:57 +00:00
Tomas Votruba
573de34a8c Updated Rector to commit 048b893960e3c4c8f31e907ec3af550726b52c11
048b893960 [TypeDeclaration] Skip assign on while cond on WhileNullableToInstanceofRector (#6628)
2024-12-24 17:33:18 +00:00
Tomas Votruba
b40bc10c7c Updated Rector to commit 22915933d05f2a3e38355cd150ec67401a0fe3b9
22915933d0 [automated] Apply Coding Standard (#6627)
2024-12-24 01:25:19 +00:00
Tomas Votruba
0aa5d110fd Updated Rector to commit 22915933d05f2a3e38355cd150ec67401a0fe3b9
22915933d0 [automated] Apply Coding Standard (#6627)
2024-12-23 23:45:34 +00:00
Tomas Votruba
99d5371f01 Updated Rector to commit 22915933d05f2a3e38355cd150ec67401a0fe3b9
22915933d0 [automated] Apply Coding Standard (#6627)
2024-12-23 09:59:12 +00:00
Tomas Votruba
17380f9017 Updated Rector to commit 22915933d05f2a3e38355cd150ec67401a0fe3b9
22915933d0 [automated] Apply Coding Standard (#6627)
2024-12-22 11:28:18 +00:00
Tomas Votruba
911b1456fa Updated Rector to commit 22915933d05f2a3e38355cd150ec67401a0fe3b9
22915933d0 [automated] Apply Coding Standard (#6627)
2024-12-22 00:37:23 +00:00
Tomas Votruba
739319081e Updated Rector to commit 351e4b75ebe9daf191a6ba0166561a9b98490377
351e4b75eb [Experiment] Remove WrappedNodeRestoringNodeVisitor (#6626)
2024-12-21 14:05:54 +00:00
Tomas Votruba
137bbc9c25 Updated Rector to commit e5d221e40d2c5acc1a92b1ded501321ee690be06
e5d221e40d Add sub namespace Groups fixture on AnnotationToAttributeRector (#6625)
2024-12-21 04:58:21 +00:00
Tomas Votruba
1883ef8cfc Updated Rector to commit 69c22013f6d127aca89b2c18070a4e27119d94bf
69c22013f6 Rollback SimpleCallableNodeTraverser usage on ByRefReturnNodeVisitor (#6624)
2024-12-21 01:03:22 +00:00
Tomas Votruba
a2f3748e83 Updated Rector to commit 69c22013f6d127aca89b2c18070a4e27119d94bf
69c22013f6 Rollback SimpleCallableNodeTraverser usage on ByRefReturnNodeVisitor (#6624)
2024-12-20 15:33:39 +00:00
Tomas Votruba
b15d939f9f Updated Rector to commit 69c22013f6d127aca89b2c18070a4e27119d94bf
69c22013f6 Rollback SimpleCallableNodeTraverser usage on ByRefReturnNodeVisitor (#6624)
2024-12-20 14:32:09 +00:00
Tomas Votruba
f61a8361f2 Updated Rector to commit df255c0db4dbfce78ad3fc5bbdb9997490c2ec6d
df255c0db4 [FunctionLike] Skip return by ref with switch on SimplifyUselessVariableRector (#6623)
2024-12-20 14:26:22 +00:00
Tomas Votruba
d31e479bfc Updated Rector to commit 8a49d9de4b568e4d074d1785acc31db8f085c72b
8a49d9de4b [Fix] Renamed gzwrites (undefined function) to gzwrite (#6622)
2024-12-20 14:04:52 +00:00
Tomas Votruba
1c07f3ee87 Updated Rector to commit 713c3593d73874c9a225c8163388322df599001b
713c3593d7 [Performance] Remove SimpleCallableNodeTraverser usage on ByRefReturnNodeVisitor (#6621)
2024-12-20 12:51:05 +00:00
Tomas Votruba
6be577566e Updated Rector to commit f67bc4eb89d3ef9804cd6088e98c8f7636f5c221
f67bc4eb89 [Performance] Only register WrappedNodeRestoringNodeVisitor() when there is found AlwaysRememberedExpr or Match_ node on processNodes() (#6620)
2024-12-20 12:05:26 +00:00
Tomas Votruba
e5dd70b750 Updated Rector to commit ebfb78242931b03c082ce5b2f018b84c6742373f
ebfb782429 Reduce double loop to set stmt_key on refresh process (#6619)
2024-12-20 05:48:10 +00:00
Tomas Votruba
79fb8fc282 Updated Rector to commit a72a02188ab22b7beeb94dd1ffda79bdfffd64c4
a72a02188a [Php84] Add rule for RoundingMode enum (#6369)
2024-12-20 00:17:13 +00:00
Tomas Votruba
2601fd2c97 Updated Rector to commit 6aca457745976acad6cec231ffc400f0d399a386
6aca457745 [Php81][php82] Add AttributeGroupNewLiner to make new line based on token on ReadOnlyPropertyRector and ReadOnlyClassRector (#6618)
2024-12-19 09:07:49 +00:00
Tomas Votruba
ca7f3cd180 Updated Rector to commit 6aca457745976acad6cec231ffc400f0d399a386
6aca457745 [Php81][php82] Add AttributeGroupNewLiner to make new line based on token on ReadOnlyPropertyRector and ReadOnlyClassRector (#6618)
2024-12-19 09:00:56 +00:00
Tomas Votruba
fa66798989 Updated Rector to commit 8fea0f5b27dbdb4d3e0b2d672d43c60cb0c2ea2c
8fea0f5b27 [Php54] Use token base replace on LongArrayToShortArrayRector (#6616)
2024-12-19 07:37:44 +00:00
Tomas Votruba
e2a64c439d Updated Rector to commit e9e88d4d1b6e85b4a5e40f9c17dc12a951a748a8
e9e88d4d1b Remove deep reindex on refresh scope node (#6617)
2024-12-19 06:24:39 +00:00
Tomas Votruba
9857b354fa Updated Rector to commit e5e2ba2c721aebd507d338d77996e45ca84567ba
e5e2ba2c72 Revert "Ensure reindex in deep stmts before refactor() (#6614)" (#6615)
2024-12-19 05:04:40 +00:00
Tomas Votruba
8a72b6dd2c Updated Rector to commit 89441c419b0a8b9817b89b963af1dcfff804d3f7
89441c419b Ensure reindex in deep stmts before refactor() (#6614)
2024-12-19 04:45:05 +00:00
Tomas Votruba
91d3d77426 Updated Rector to commit 0c2185fbbdf245ac5246096dac79c231ead76cb7
0c2185fbbd Add unit test for reindex stmt_key before refactor() called (#6613)
2024-12-19 04:28:14 +00:00
Tomas Votruba
b0043cf604 Updated Rector to commit 3e414f34039da79932322ed6e1f906454ab8c366
3e414f3403 [NodeTypeResolver Ensure reindex stmt_key on NodeAttributeReIndexer (#6611)
2024-12-18 22:27:49 +00:00
Tomas Votruba
7180d53b03 Updated Rector to commit c5ac495242295f73aaa0dadad8cfebe901735422
c5ac495242 Revert "[Php80] Keep numeric string as is on StringAnnotationToAttributeMappe…" (#6609)
2024-12-18 18:45:52 +00:00
Tomas Votruba
480c133a14 Updated Rector to commit 72c537af546dae8970b6db5f79f2a1e617db7f61
72c537af54 [Php80] Keep numeric string as is on StringAnnotationToAttributeMapper (#6608)
2024-12-18 11:25:16 +00:00
Tomas Votruba
6d48540b47 Updated Rector to commit 5e0f1ce34354497a5163bbd51dddf91cb5c82207
5e0f1ce343 [DeadCode] Skip value variable used in throw stmts in catch on UnusedForeachValueToArrayKeysRector (#6607)
2024-12-18 09:55:31 +00:00
Tomas Votruba
d257e68fbf Updated Rector to commit e7e8c5bfac8df0f605d6588c3612a05cca74b017
e7e8c5bfac [DeadCode] Skip key variable used in throw stmts in catch on RemoveUnusedForeachKeyRector (#6606)
2024-12-18 09:37:57 +00:00
Tomas Votruba
de72a9244a Updated Rector to commit d2298c6fd6fb233e4fcec5d3b69cd2eed52910e6
d2298c6fd6 Move FunctionLike reindex under StmtsAwareInterface on NodeAttributeReIndexer (#6605)
2024-12-18 06:46:59 +00:00