5610 Commits

Author SHA1 Message Date
Tomas Votruba
425ccaa023 Updated Rector to commit 36f2d21ca9ec795733466a9f486d16322325d19c
36f2d21ca9 [TypeDeclaration] Handle crash on union intersection on AddClosureParamTypeForArrayReduceRector (#6729)
2025-02-10 15:36:28 +00:00
Tomas Votruba
a29172639c Updated Rector to commit 3b14af26db9eef322f21a9c783e6f9109e087c67
3b14af26db Type hint array reduce closure (#6725)
2025-02-09 16:30:04 +00:00
Tomas Votruba
df41bf4df8 Updated Rector to commit 1964b34621401d02a7ca9b42130ab95b7c86bb59
1964b34621 [CodingStyle] Rename method:  containsASCIIChar to containsControlASCIIChar on EncapsedStringsToSprintfRector (#6720)
2025-02-06 00:22:24 +00:00
Tomas Votruba
7fb6abc4ae Updated Rector to commit 78382d288119533208cee5bd2827bdf0222f4064
78382d2881 Skip hexa chars in EncapsedStringsToSprintfRector (#6719)
2025-02-05 15:38:15 +00:00
Tomas Votruba
7af22161c0 Updated Rector to commit 95a145f9311826749ea9e72f44c3a3adb2a030f3
95a145f931 [DeadCode] Skip union falsy mixed on trait on RecastingRemovalRector (#6718)
2025-02-05 08:49:36 +00:00
Tomas Votruba
a1be95d612 Updated Rector to commit 11789be00e0c2ee749b74d815080f9960aa06c1a
11789be00e [NodeTypeResolver] Remove ReprintNodeVisitor take 2 (#6710)
2025-02-01 03:31:05 +00:00
Tomas Votruba
c435e209d4 Updated Rector to commit f51f41de2b5ff26632e2322dbf2795ead1447e45
f51f41de2b Rectify (#6709)
2025-01-31 01:34:38 +00:00
Tomas Votruba
950fcb8ff2 Updated Rector to commit c78198396c671352dca6044d49ae2de14173fb34
c78198396c fix: NewlineBeforeNewAssignSetRector variable as same name like property (#6705)
2025-01-31 00:29:51 +00:00
Tomas Votruba
03513ec2de Updated Rector to commit a1170acff3bcbd8ef0f5ec2f833e460c1cb7d418
a1170acff3 [Php80][TypeDeclaration] Fix crash on ClassPropertyAssignToConstructorPromotionRector + ReturnNeverTypeRector (#6694)
2025-01-24 17:27:16 +00:00
Tomas Votruba
699d1b7dd4 Updated Rector to commit 00ae805d747e43b7d279a17d9e14ec4a374894a8
00ae805d74 Replace ambiguous wrapped_with_brackets with existing attribute wrapped_in_parentheses (#6691)
2025-01-22 18:58:18 +00:00
Tomas Votruba
c614c1c1eb Updated Rector to commit 4a954af301a5a79cf5239eb73802085ea0e81e1f
4a954af301 Bump to PHPStan 2.1.2 and fix test (#6689)
2025-01-22 03:27:06 +00:00
Tomas Votruba
015c053dc7 Updated Rector to commit 223cb9100889a21bb4e8b2a1aa9583e80e1f22b4
223cb91008 [Printer] Move set wrap on assign instanceof to BetterStandardPrinter (#6686)
2025-01-21 13:19:34 +00:00
Tomas Votruba
d0a75a7d2c Updated Rector to commit e4e77b2fe9ddefec46aeea5b18ea90ade7188874
e4e77b2fe9 [Strict] Handle in assign on BooleanInIfConditionRuleFixerRector (#6685)
2025-01-21 12:28:46 +00:00
Tomas Votruba
13d175711c Updated Rector to commit 9691e9eaf4400f57e9008c409756dae37efdde7e
9691e9eaf4 [CodeQuality] Skip windows absolute path on AbsolutizeRequireAndIncludePathRector (#6684)
2025-01-20 05:32:16 +00:00
Tomas Votruba
e46a92fe64 Updated Rector to commit 5ec9708c2941e02774382a1b8be54f6da9ddcb13
5ec9708c29 [CodeQuality] Skip with comment inside on SimplifyIfElseToTernaryRector (#6683)
2025-01-20 04:09:53 +00:00
Tomas Votruba
6f5cf7f6b4 Updated Rector to commit 7ec3ae3514546043861ab1615509c6c8ab9c26ff
7ec3ae3514 [removing] Add interface support to RemoveInterfaceRector (#6681)
2025-01-19 08:22:28 +00:00
Tomas Votruba
328512f2ce Updated Rector to commit 0c368224b325087933f286a8e19be972b1ac85ae
0c368224b3 [AutoImport] Handle inner with sub namespace on auto import (#6679)
2025-01-18 19:28:01 +00:00
Tomas Votruba
13e89f8bcc Updated Rector to commit 7a6c4c5386ce203184897c60f7e070fc43aca15a
7a6c4c5386 [AutoImport] Handle FQCN with sub namespace (#6672)
2025-01-16 12:05:30 +00:00
Tomas Votruba
287ee5498b Updated Rector to commit 5ad54809ac3cac41862b13b786e13020861a6c01
5ad54809ac [CodeQuality] Handle with assign missing parentheses on ExplicitBoolCompareRector (#6668)
2025-01-13 11:22:50 +00:00
Tomas Votruba
03505a62b6 Updated Rector to commit d347dd3f23c8a72a4ac9cd2a966eb72b9ed895e2
d347dd3f23 [Renaming] Skip used by trait as property promotion on RenamePropertyToMatchTypeRector (#6665)
2025-01-11 13:34:12 +00:00
Tomas Votruba
331a8ca05e Updated Rector to commit 706170a2bee1e6df93e0b9789c97f7af36eb9c73
706170a2be feature: replace MyCLabs Enum constructor call (#6588)
2025-01-11 07:43:54 +00:00
Tomas Votruba
e936f2ae47 Updated Rector to commit 8da1bfe2590771077da7ccd297f5df245d3e55c1
8da1bfe259 [type-declaration] Add typed property, if traits do not duplicate the property (#6663)
2025-01-09 20:29:05 +00:00
Tomas Votruba
f3e9cbef7a Updated Rector to commit c59c83a99fdb883dbcf6fead62b7cd9961fae034
c59c83a99f [Php83] Handle concat in first argument on CombineHostPortLdapUriRector (#6661)
2025-01-07 16:25:29 +00:00
Tomas Votruba
b47878ee33 Updated Rector to commit b6deb2906c86fa45cf27a26d2cb21dd1fd55e238
b6deb2906c [CodeQuality] Skip indirect return on SimplifyIfReturnBoolRector (#6660)
2025-01-07 03:49:22 +00:00
Tomas Votruba
98031aa3cf Updated Rector to commit d01cdf411c072abfdacc464c9bf07a4521a8d40e
d01cdf411c [DeadCode] Skip dynamic name on RemoveParentCallWithoutParentRector (#6659)
2025-01-06 19:38:19 +00:00
Tomas Votruba
71cfadbfe5 Updated Rector to commit b833a753cc1d999fe0e832367a83d48311e378b4
b833a753cc [Performance] Early return FullyQualifiedObjectType on FQCN on ObjectTypeSpecifier (#6658)
2025-01-06 18:07:08 +00:00
Tomas Votruba
97c2f84d90 Updated Rector to commit da809660a9a2d98231f8f57b337fc3facf803b13
da809660a9 [CodeQuality] Handle on assign on FlipTypeControlToUseExclusiveTypeRector (#6653)
2025-01-06 13:54:36 +00:00
Tomas Votruba
45b8ec26b9 Updated Rector to commit fe99f211133b43850881ce0a7522c6242892b6b1
fe99f21113 Use autowired method if exists in adding new dependency (#6652)
2025-01-06 10:18:22 +00:00
Tomas Votruba
934bc262ff Updated Rector to commit 8ed98c17688300b3aa85d978fefc24c88a51f1f3
8ed98c1768 [DX] Use Param->isPromoted() over param->flags !== 0 check on promotion property check (#6646)
2025-01-05 04:12:03 +00:00
Tomas Votruba
24b8fc7d89 Updated Rector to commit a1cb33463a604a3b0e232ec423700ee1ff2cf60a
a1cb33463a [DeadCode] Add RemoveUselessAssignFromPropertyPromotionRector (#6643)
2025-01-04 12:25:26 +00:00
Tomas Votruba
79bfc87e90 Updated Rector to commit 66d93167af53e4116e73f6dc011f02ac23efbd6f
66d93167af [DeadCode] Add ReplaceBlockToItsStmtsRector (#6641)
2025-01-01 16:35:01 +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
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
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
59d44f7985 Updated Rector to commit 5f21af7a492f8be43972c1d89fa150ae9e37475c
5f21af7a49 Remove unused AssignVariableNameResolverInterface instances (#6631)
2024-12-27 13:23:06 +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
79fb8fc282 Updated Rector to commit a72a02188ab22b7beeb94dd1ffda79bdfffd64c4
a72a02188a [Php84] Add rule for RoundingMode enum (#6369)
2024-12-20 00:17:13 +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
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
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
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
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
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