18714 Commits

Author SHA1 Message Date
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
Tomas Votruba
0ec46855b0 Updated Rector to commit 037cf6576b7c8d17a82c00fa14e1975e3e485bf4
037cf6576b Add early return on NodeAttributeReIndexer (#6604)
2024-12-18 06:41:13 +00:00
Tomas Votruba
2ed8be5c45 Updated Rector to commit 4cafa91255c4137074b7ea9aa05754f934e99ab9
4cafa91255 Rollback reindex node attributes before refactor  (#6603)
2024-12-18 06:16:38 +00:00
Tomas Votruba
6b6579135c Updated Rector to commit bdb40258944adef73378fa5fc15cc26bded7431f
bdb4025894 Fix return $node on ReIndexNodeAttributeVisitor (#6602)
2024-12-18 03:57:10 +00:00
Tomas Votruba
2715075d74 Updated Rector to commit 99b6d309220f3cdda9f49cf8bf6bc21863b03c26
99b6d30922 [NodeTypeResolver] Re-index node attributes on refresh scope process (#6601)
2024-12-18 03:47:18 +00:00
Tomas Votruba
3c2265860e Updated Rector to commit 6024d31dd6e946e3801436de95a1e2dcf64be7b2
6024d31dd6 Bump to PHPStan ^2.0.4 (#6600)
2024-12-17 22:08:10 +00:00
Tomas Votruba
35244f0eda Updated Rector to commit e1b032ef92c901037728b9bacb838b75d4908413
e1b032ef92 [Php81] Skip with next required on NewInInitializerRector (#6599)
2024-12-17 21:57:29 +00:00
Tomas Votruba
22cf34f61c Updated Rector to commit 0efbe133dbbeb1f4d9335680bfb54f391f9533d1
0efbe133db [CodingStyle] Handle crash on pass args on CallUserFuncToMethodCallRector (#6598)
2024-12-17 11:58:49 +00:00
Tomas Votruba
79d71b7593 Updated Rector to commit 654d5a27cd83fc1bd5abc807fbf3e9d1d0ab60b5
654d5a27cd [Php80] Handle crash on multi next stmts on ChangeSwitchToMatchRector (#6597)
2024-12-16 18:28:26 +00:00
Tomas Votruba
f885b888d5 Updated Rector to commit 8017dacd36c96eaada49940712dbd01c92c2f62d
8017dacd36 Removed unused method `ClassChildAnalyzer-> hasParentClassMethod()` (#6595)
2024-12-16 15:08:18 +00:00
Tomas Votruba
fc37f9af2b Updated Rector to commit f6fa83409bd80bf25f0677988100709c2ad7ab38
f6fa83409b [Php81] Skip reassign on array destruct on ReadOnlyPropertyRector (#6596)
2024-12-16 15:01:24 +00:00
Tomas Votruba
3e53616d72 Updated Rector to commit f6fa83409bd80bf25f0677988100709c2ad7ab38
f6fa83409b [Php81] Skip reassign on array destruct on ReadOnlyPropertyRector (#6596)
2024-12-16 13:28:50 +00:00
Tomas Votruba
7bf0acdccc Updated Rector to commit 3e2e579e4753ac559fa1c075ea51b1c5df86532e
3e2e579e47 📦 Ignore `.phpstorm.meta.php` because this is not PHP file (#6594)
2024-12-16 11:39:13 +00:00
Tomas Votruba
0dbd7f432e Updated Rector to commit 967e983203f45c47ca154df85d47f08f54b5cafb
967e983203  `withRootFiles` now apply rector for dotfiles too (#6592)
2024-12-15 18:18:09 +00:00
Tomas Votruba
8c7e2073d6 Updated Rector to commit fa88e970e6317d59586339c8fdce086050ca3b61
fa88e970e6 [dx] polyfill sets is running out of the box in php sets (#6591)
2024-12-14 23:29:55 +00:00
Tomas Votruba
8156b1e214 Updated Rector to commit e81670c70921a4bf29f9de769be1b5cdd6eb2097
e81670c709 [deprecation] Add message about deprecated MixedTypeRector rule, Remove deprecated SetListInterface as no longer used (#6590)
2024-12-14 23:01:26 +00:00
Tomas Votruba
8b56f9624f Updated Rector to commit 1013a5ab7ddfc51fd597a4cfb17e1821cd662c5e
1013a5ab7d [TypeDeclaration] Add param type to array map closure (#6377)
2024-12-14 20:43:14 +00:00
Tomas Votruba
d8645f1325 Updated Rector to commit 832e458817d9d7bff06ba321aea44a9ce3bb7819
832e458817 [Php80] Handle value as argument with keep description as comment on AttributeValueResolver (#6589)
2024-12-14 20:29:53 +00:00
Tomas Votruba
262b29c337 Updated Rector to commit 171afe1ffc99f609981d6c7a03c4e97b319cc92a
171afe1ffc [Php80] Use more proper check for doc comment multi lines on AttributeValueResolver (#6587)
2024-12-14 19:32:49 +00:00
Tomas Votruba
66831f47a9 Updated Rector to commit ccb2fa2d2f034be091024929deecebe8829a88f6
ccb2fa2d2f [Php80] Handle comment multi line on AttributeValueResolver (#6586)
2024-12-14 19:26:12 +00:00
Tomas Votruba
ceea4dbfe3 Updated Rector to commit 15fcd52e45357bf2c244f29b86ab0d3ab77b15b4
15fcd52e45 fix: replace getKey/getValue methods when enum is a variable (#6585)
2024-12-14 18:53:16 +00:00
Tomas Votruba
8b25af0748 Updated Rector to commit 2d3243aa99efa1b91189e24dc495954136fdbd38
2d3243aa99 fix: replace getKey method for name property (#6583)
2024-12-14 11:34:00 +00:00
Tomas Votruba
847b42807a Updated Rector to commit 484098bb5f2aa29fd09d0e5c36a1ed7b3049cb1e
484098bb5f [Comments] Move left over clean empty doc handling to DocBlockUpdater (#6584)
2024-12-14 08:14:59 +00:00
Tomas Votruba
45946d795d Updated Rector to commit 6192fe3285c1dc5ac7f28afac485b8facd018b39
6192fe3285 Fix annotation on doctrine one (#6582)
2024-12-14 01:48:37 +00:00
Tomas Votruba
d9c60856fd Updated Rector to commit 2cb9a95b79554c9116e140c95e41276a7165c241
2cb9a95b79 Add multiline comment fixture (#6580)
2024-12-13 12:28:13 +00:00
Tomas Votruba
ec49eef19e Updated Rector to commit 3001e72a590aa9b7d3f06f620fde35349660f98f
3001e72a59 [Php80] Fix end slash regex on AttributeValueResolver (#6579)
2024-12-13 12:23:46 +00:00
Tomas Votruba
447e794805 Updated Rector to commit 2ff314c5d215b17eafdec4dcee7b974d856b9ba6
2ff314c5d2 [PHP 8.0] Make AnnotationToAttributeRector return after 1st newline without slash (#6578)
2024-12-13 11:14:53 +00:00
Tomas Votruba
1061e30ae8 Updated Rector to commit 25817175d71dd62ec8007bfc7b6353d568a2b6de
25817175d7 [PHP 8.0] Add lcfirst annotation to attribute support (#6577)
2024-12-13 10:43:42 +00:00
Tomas Votruba
6b92e01e7d Updated Rector to commit 362e9b59543957bd64c3ac8b84574116ccc7f47d
362e9b5954 [DeadCode] Skip @return positive-int|0 on RemoveUselessReturnTagRector (#6576)
2024-12-12 22:57:55 +00:00
Tomas Votruba
1c41f0fbf6 Updated Rector to commit 96110a93c903f8e958954b537188914694754dfb
96110a93c9 [CodeQuality] Handle crash on property hook on OptionalParametersAfterRequiredRector (#6575)
2024-12-12 22:09:44 +00:00
Tomas Votruba
911049078e Updated Rector to commit 617d06a7dbeb15705fe4e94a7dd21cd91368827d
617d06a7db [phpstan] Fix few static errors (#6574)
2024-12-12 17:49:20 +00:00
Tomas Votruba
bd270b9525 Updated Rector to commit fc186bf2f943ee4842fb78bc4dbb5f5a826040a7
fc186bf2f9 [phpstan] Fix few static errors (#6573)
2024-12-12 17:33:48 +00:00