5638 Commits

Author SHA1 Message Date
Tomas Votruba
a4e557403b Updated Rector to commit 3fc24e1460dcf672b75bbe7d374a9bea4a403573
3fc24e1460 [naming] Skip mock object in RenamePropertyToMatchTypeRector to keep original "mock" suffix (#6786)
2025-03-17 11:18:32 +00:00
Tomas Votruba
99a32e2b2e Updated Rector to commit d1e896cd58204f76a1dea43a86e8f119a8c71c9c
d1e896cd58 [automated] Apply Coding Standard (#6784)
2025-03-16 00:39:15 +00:00
Tomas Votruba
7a39169380 Updated Rector to commit 217026caf877c60eb7a7fd61b5b16d9a642f1662
217026caf8 [Php84] Add AddEscapeArgumentRector (#6782)
2025-03-14 16:20:50 +00:00
Tomas Votruba
564386282d Updated Rector to commit 61cb7b5042ebca12c18e1f2df22ecf3ba9d26bdb
61cb7b5042 [TypeDeclaration] Skip void return on callback docblock on AddArrowFunctionReturnTypeRector (#6780)
2025-03-12 15:15:22 +00:00
Tomas Votruba
bb4ee9d1db Updated Rector to commit ad52e3b0d6173edbe8c4157dedb024411e49faf3
ad52e3b0d6 [Php73] Skip non integer third argument on SetcookieRector (#6779)
2025-03-12 11:25:52 +00:00
Tomas Votruba
ef2fdc9b32 Updated Rector to commit a2b010d3152c065aeb91bdbcd5437b8645a3f7c7
a2b010d315 [Carbon] Skip first class callable on DateFuncCallToCarbonRector (#6776)
2025-03-10 00:27:18 +00:00
Tomas Votruba
169b108144 Updated Rector to commit f6c99820dc0852cc2c9f92f94aaae188b4b6aeae
f6c99820dc Bump to PHPStan ^2.1.8 and change deprecated ClassReflection::isSubClassOf() to ClassReflection::is() (#6775)
2025-03-09 19:54:33 +00:00
Tomas Votruba
b2988722fa Updated Rector to commit 483849a4344ab480a630f1263a76ca063a57b172
483849a434 [CodeQuality] Handle crash previous duplicated on ThrowWithPreviousExceptionRector (#6773)
2025-03-07 10:00:29 +00:00
Tomas Votruba
39e17602c3 Updated Rector to commit 01e60dfaded7ba83b8727583cd424a9fcb87af80
01e60dfade [TypeDeclaration] Handle crash with nested method on AddParamTypeBasedOnPHPUnitDataProviderRector (#6772)
2025-03-07 09:20:08 +00:00
Tomas Votruba
9d1fea889c Updated Rector to commit ac596ea0e8b6ef97500b82b6efb852649cc0e27b
ac596ea0e8 [TypeDeclaration] Handle crash on combine union on PropertyTypeFromStrictSetterGetterRector (#6771)
2025-03-07 08:35:23 +00:00
Tomas Votruba
3dd8552b74 Updated Rector to commit 652e8147de94f4f9b2efaaf8fab12b1d05013579
652e8147de [DeadCode] Skip with side effect on RemoveDeadLoopRector (#6770)
2025-03-06 18:26:07 +00:00
Tomas Votruba
ab35ac4c1c Updated Rector to commit a05c2b62086cccffb3099dbdf3a90a708aca66a9
a05c2b6208 Recfify (#6764)
2025-03-04 07:37:29 +00:00
Tomas Votruba
9235956c18 Updated Rector to commit 61d31e194fb3cf890be9c7727840ba83262ec749
61d31e194f [Rector Rule] Replace `date`, `strtotime`, and `time` calls with `Carbon` equivalents (#6749)
2025-03-04 07:30:21 +00:00
Tomas Votruba
ef0dacc9b2 Updated Rector to commit cca89d9203a1932eb783c9f2b8b597ce09b39739
cca89d9203 [CodingStyle] FunctionLikeToFirstClassCallableRector (#6667)
2025-03-03 19:07:57 +00:00
Tomas Votruba
8d61334bb3 Updated Rector to commit a732689e0488b7c199551d466ff1bb04fb00afa9
a732689e04 [CodeQuality] Handle crash first class callable on InlineArrayReturnAssignRector (#6763)
2025-03-02 15:33:53 +00:00
Tomas Votruba
9b85fcec2a Updated Rector to commit 5a833e062eafffe01921dc6b2b674d173947777f
5a833e062e [code-quality] Skip complex new instance with args assigns in InlineArrayReturnAssignRector (#6762)
2025-03-02 15:27:15 +00:00
Tomas Votruba
8457889ed4 Updated Rector to commit efef8aca6e7aaf688759cd09b48c64990adbfb53
efef8aca6e [Php81] Skip property hook on ReadOnlyPropertyRector (#6758)
2025-02-28 12:27:03 +00:00
Tomas Votruba
e9ba8ff879 Updated Rector to commit 81cc7a07c922034c7264ea1612fc5725a2e8110a
81cc7a07c9 [Php74] Skip with @var doc with more specific type on ClosureToArrowFunctionRector (#6753)
2025-02-23 10:49:23 +00:00
Tomas Votruba
82ffc9544b Updated Rector to commit f2f31765258607179d3ca584d75d0e1a7d1e5da6
f2f3176525 [naming] Skip variadic params in RenameParamToMatchTypeRector to avoid single naming for multiple types (#6748)
2025-02-21 11:23:00 +00:00
Tomas Votruba
4126984a73 Updated Rector to commit b17648099c313c55a4bb19a2211d41efcbae117b
b17648099c fix(ValueObject): FileDiff first line number is below as expected (#6746)
2025-02-20 09:55:02 +00:00
Tomas Votruba
3fbef1781c Updated Rector to commit 5b054eaa33bcd3cede29c544603cd31dd2959631
5b054eaa33 [Php81] Handle crash Class parent was not found on MyCLabsMethodCallToEnumConstRector (#6741)
2025-02-19 04:14:36 +00:00
Tomas Votruba
0797e1f875 Updated Rector to commit 061176dbcc6e940d8903fba6c09383fda65b6238
061176dbcc [Php53] Handle parentheses in else on TernaryToElvisRector (#6740)
2025-02-18 11:56:25 +00:00
Tomas Votruba
09295ad46d Updated Rector to commit bcc6889c70428334a5558a5014618a4cb4ccd065
bcc6889c70 [TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayMapRector (#6738)
2025-02-15 12:52:49 +00:00
Tomas Votruba
bfc7de5464 Updated Rector to commit 19aff25061aa1061e8241fdd44fa660a9bc9ccdc
19aff25061 [TypeDeclaration] Skip already typed param on AddClosureParamTypeForArrayReduceRector (#6737)
2025-02-15 12:51:27 +00:00
Tomas Votruba
cfcd9ca506 Updated Rector to commit 6137332476155f4a1350eba6d9869ae1b4a35795
6137332476 [Php74] Skip property hook on RestoreDefaultNullToNullableTypePropertyRector (#6736)
2025-02-14 13:50:40 +00:00
Tomas Votruba
d8deb2ab52 Updated Rector to commit 449e5ff7e0b30d9cb15e5b31e9cb96d31f4556a7
449e5ff7e0 [Privatization] Skip magic method on PrivatizeFinalClassMethodRector (#6734)
2025-02-13 09:09:11 +00:00
Tomas Votruba
c0e2ec7e5c Updated Rector to commit e1841aebb73cb1fdc6f330b91555433cbb69ab34
e1841aebb7 [Carbon] Fix refactor time to carbon to use ->getTimestamp() over ->timestamp (#6733)
2025-02-11 17:24:40 +00:00
Tomas Votruba
58e3b14615 Updated Rector to commit 91df6147a4208433347ba68be65d9dcd7b756329
91df6147a4 [CodeQuality] Skip unused static methods in LocallyCalledStaticMethodToNonStaticRector, as should be handled by another rule (#6731)
2025-02-11 14:12:14 +00:00
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