Commit Graph

498 Commits

Author SHA1 Message Date
Tomas Votruba 695c190be3 Updated Rector to commit 94b5561ca87ee6825a098c7c506b774582bf3354
94b5561ca8 chore: bump min version of github actions (fix deprecations) (#5675)
2024-03-01 20:02:28 +00:00
Tomas Votruba 6ef7f81fc3 Updated Rector to commit c4dd05e2e3ae6359ff4eb57ce7d7bd7619da139d
c4dd05e2e3 [CodeQuality] Add StaticToSelfStaticMethodCallOnFinalClassRector (#5621)
2024-02-15 12:52:16 +00:00
Tomas Votruba b0211bc3d8 Updated Rector to commit fa75fcf0d1445f90cff9199875aba352671795f9
fa75fcf0d1 [Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
2024-02-01 23:54:40 +00:00
Tomas Votruba 7ba32aac1f Updated Rector to commit e12c73eb339a847bcd717025abf5bc43f1cd0e4c
e12c73eb33 [psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
2024-01-01 00:20:45 +00:00
Tomas Votruba 1bcbe800e1 Updated Rector to commit ea5b331e7ea67a03b4c3f162c566a8dbfd74d55d
ea5b331e7e [CodeQuality] Add RemoveUselessIsObjectCheckRector (#5316)
2023-12-03 12:25:03 +00:00
Tomas Votruba c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba 184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba 798d9b99b4 Updated Rector to commit 3e0132d324099a3d45e1f8f0d28be76d310ee0eb
3e0132d324 [CodeQuality] Add CompleteMissingIfElseBracketRector (#5121)
2023-10-05 14:38:05 +00:00
Tomas Votruba 671f50c702 Updated Rector to commit ee715396945596fffb158ff8278749feb01ea01a
ee71539694 [NodeTypeResolver] Use isScalar()->yes() usage on StaticTypeAnalyzer and ScalarTypeComparator services (#5099)
2023-10-01 01:36:35 +00:00
Tomas Votruba 2ae279bf07 Updated Rector to commit 093bcb63a19db3fcdab8264897c584212d755463
093bcb63a1 [CodeQuality] Add NumberCompareToMaxFuncCallRector (#4914)
2023-09-05 13:21:31 +00:00
Tomas Votruba 326e84f967 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-09-01 11:10:35 +00:00
Tomas Votruba e3116ffed3 Updated Rector to commit 097785424d7239bf0166d1fddb3e2079ce4787c8
097785424d [TypeDeclaration] Allow __invoke() method for return type changed on ClassMethodReturnTypeOverrideGuard (#4667)
2023-08-06 09:54:45 +00:00
Tomas Votruba 2a286e21bd Updated Rector to commit 6110a50ed0aaa58281e3b9de0a195f18bb782ba4
6110a50ed0 [TypeDeclaration] Skip anonymous class and other object on ReturnUnionTypeRector (#4670)
2023-08-06 09:54:38 +00:00
Tomas Votruba b390109355 Updated Rector to commit 4e3be87945bf57a1f4c7aaf51696c55ae7617054
4e3be87945 [TypeDeclaration][CodeQuality] Move ReturnTypeFromStrictScalarReturnExprRector from CodeQuality to TypeDeclaration set (#4668)
2023-08-06 09:54:10 +00:00
Tomas Votruba aae549741f Updated Rector to commit 0cb3fd0feb464b4568e07607a05c794637aa2862
0cb3fd0feb [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
2023-08-01 10:55:14 +00:00
Tomas Votruba 4ded5a660a Updated Rector to commit 9df1445de8c8cb5eed5a85446628226f9b03ed76
9df1445de8 [DX] Remove SimplifyForeachToArrayFilterRector as it turns typed functions to string and make code worse (#4424)
2023-07-05 15:32:48 +00:00
Tomas Votruba 6981c70c9a Updated Rector to commit 9ed8c21b127cdd45a28307d5fc41668f867f4ef4
9ed8c21b12 [DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
2023-07-01 09:41:56 +00:00
Tomas Votruba 5a6b4888cf Updated Rector to commit e87ee7e0b358fcbdb752bac8ec8b870dde54a7d3
e87ee7e0b3 Move LocallyCalledStaticMethodToNonStaticRector to CodeQuality namespace, to avoid dumping removed static set (#4242)
2023-06-16 14:09:13 +00:00
Tomas Votruba 48bf71f740 Updated Rector to commit 8db9a6ff83fe5407e967000b2dfec772285de87a
8db9a6ff83 [DX] Autowire commands explicitly (#4118)
2023-06-08 18:28:01 +00:00
Tomas Votruba f486676c12 Updated Rector to commit 16b60d0f84d824f2eaafadd52650bd4ea84798e5
16b60d0f84 Make ConvertStaticPrivateConstantToSelfRector work for non-final classes, make part of code-quality set (#4114)
2023-06-08 14:55:39 +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 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 9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba 26ac08e306 Updated Rector to commit fa6f1f67578dbe765fc13abaa294e0f62e66d4a8
fa6f1f6757 [CodeQuality] Remove ExplicitMethodCallOverMagicGetSetRector designed for nette smart object migration only, not useful for general projects (#3948)
2023-05-24 12:27:19 +00:00
Tomas Votruba 96fc00fd8e Updated Rector to commit 3c69a0f9d7b075cef7e0e382eee94234f3629efa
3c69a0f9d7 Remove AddPregQuoteDelimiterRector as very narrow area and has not context awareness, better handle manually (#3927)
2023-05-22 13:43:31 +00:00
Tomas Votruba 270692ae54 Updated Rector to commit 0a7be603fcc467ac3956081bf83db9c0d5350eee
0a7be603fc Remove MakeTypedPropertyNullableIfCheckedRector as old fix of TypedPropertyRector rule, removed months ago (#3851)
2023-05-14 16:14:48 +00:00
Tomas Votruba 18b46b9b72 Updated Rector to commit 656836093ea0abd96860af062fdf6f67afe1f504
656836093e [CodeQuality] Deprecate NarrowUnionTypeDocRector as focused on docblocks, and moving to type declarations (#3848)
2023-05-14 15:57:29 +00:00
Tomas Votruba 83531b9b9d Updated Rector to commit 4ac2cf87c569ec8ebea4d631d684439c16dd296d
4ac2cf87c5 [Restoration] Remove RemoveFinalFromEntityRector as used only to revert very old Rector bug (#3847)
2023-05-14 15:50:50 +00:00
Tomas Votruba 8afa5f961e Updated Rector to commit 074b1781b3fa7c7e23470c57ab85c0bd5fe0bfd2
074b1781b3 Remove RemoveUnusedVariableAssignRector, as could be breaking code in order of excution and hard to do reliable (#3793)
2023-05-11 07:56:32 +00:00
Tomas Votruba 2cb797e1b1 Updated Rector to commit 11b278ca27f23ba4a2c55df877664fc23413a81d
11b278ca27 [CodeQuality] Remove SimplifyUselessLastVariableAssignRector as overly complex and should be handled individually (#3784)
2023-05-10 07:10:45 +00:00
Tomas Votruba ef5c74799d Updated Rector to commit ee666531b8270e996557198e0ea15908faa1787c
ee666531b8 Extend code-quality set (#3773)
2023-05-08 20:28:23 +00:00
Tomas Votruba 9d9cee5a78 Updated Rector to commit 9a2fe2126433ad285790cd81ec8c05594de5b396
9a2fe21264 Make PreparedValueToEarlyReturnRector use StmtsAwareInterface (#3772)
2023-05-08 14:07:26 +00:00
Tomas Votruba 39697489d4 Updated Rector to commit 5a32ed95b75b179e77c14a83a65f2eff1f1474b8
5a32ed95b7 [cleanup] Make use of getArgs(), remove ignores from phpstan.neon (#3770)
2023-05-08 10:34:06 +00:00
Tomas Votruba 4bf474e653 Updated Rector to commit be53013ca3dff5b3eca8cdb3e688d744585e2557
be53013ca3 [CodeQuality] Remove SimplifyIfExactValueReturnValueRector, as overly defensive + InlineSimplePropertyAnnotationRector as purely coding standard area (#3764)
2023-05-07 19:35:01 +00:00
Tomas Votruba e7d9598446 Updated Rector to commit 3c592b05dc0aa78702a4b38d39711d78c404e279
3c592b05dc [CodeQuality] Remove ForToForeachRector, as overly deatiled and not reliable (#3747)
2023-05-06 21:47:33 +00:00
Tomas Votruba 65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba 9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba 31bf5eb875 Updated Rector to commit 26e570f0d9f0a623cb315f58272f9b96161d3743
26e570f0d9 [CodeQuality] Add SwitchTrueToIfRector (#3535)
2023-03-29 07:34:40 +00:00
Tomas Votruba 7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba 13aa217ffa Updated Rector to commit 208d52e2a160e8563ef94e2afc53239f8ecf55cf
208d52e2a1 [CodeQuality] Remove DoWhileBreakFalseToIfElseRector, rather manual static spot and refactoring (#3367)
2023-02-08 17:44:29 +00:00
Tomas Votruba 66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba 764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba 3c99dc15fc Updated Rector to commit a31ae50227e48b078b9a3e78da55507a23127887
a31ae50227 Add Missing in Set Command to CI + complete sets from their category (#3141)
2022-12-02 14:15:07 +00:00
Tomas Votruba ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba 6afda57164 Updated Rector to commit 9e4a9c0c25fbbd630cac07c9dab074f8dc9c54b8
9e4a9c0c25 [CodeQuality] Add TernaryEmptyArrayArrayDimFetchToCoalesceRector (#3027)
2022-11-01 19:57:56 +00:00
Tomas Votruba ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba 5a0db977a5 Updated Rector to commit 34040f38fa28b4980b3ba755dc6990afdd8fd613
34040f38fa [CodeQuality] Register SimplifyUselessLastVariableAssignRector to code-quality config set (#2993)
2022-10-16 07:31:59 +00:00
Tomas Votruba e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba 1fbb663af8 Updated Rector to commit 05dc89279c87e074f6a974ab5a973a36c8262723
05dc89279c Add refactorings for ...val() (#2942)
2022-09-20 13:34:09 +00:00
Tomas Votruba 6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00