Commit Graph

590 Commits

Author SHA1 Message Date
Tomas Votruba 12c115e6f6 Updated Rector to commit 5193d43b644f9d059d9964ebcc6820181a7bca18
5193d43b64 [NodeTypeResolver] Remove unnecessary loop SourceLocator collection on DynamicSourceLocatorProvider (#5852)
2024-05-02 02:21:56 +00:00
Tomas Votruba c747b603a3 Updated Rector to commit ce1033d8e6434f3111307dd274dec753eb6481b1
ce1033d8e6 Fixes typo in FinalizeTestCaseClassRector.php (#5850)
2024-04-30 12:43:57 +00:00
Tomas Votruba 664f4e3a6b Updated Rector to commit 0f1987b0faa8dc1c5e086c9b95457d6018b2cd82
0f1987b0fa Adds a link to the PHP Static Analysis Attributes rector rules (#5787)
2024-04-01 16:51:34 +00:00
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 dcd788c4dd Updated Rector to commit 2d1f468bc6e41bc84dc273c8ac94033b60761a76
2d1f468bc6 [Privatization] Skip with suffix "TestCase" on FinalizeTestCaseClassRector (#5660)
2024-02-23 13:06:33 +00:00
Tomas Votruba 8e25ebe2a2 Updated Rector to commit ba1cad35898880f6de97c9743aab96d2ac90ba73
ba1cad3589 [Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#5557)
2024-02-04 21:10:29 +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 22c18b8179 Updated Rector to commit f03a6fd7d060535a5c124fe461190aafc527364e
f03a6fd7d0 [Privatization] Add FinalizeTestCaseClassRector (#5539)
2024-01-31 23:36:35 +00:00
Tomas Votruba dc77b4b2a6 Updated Rector to commit cbc077340ed5ee4a062caa32ab91cd8cb0d4ec6e
cbc077340e [stabilize] Deprecate FinalizeClassesWithoutChildrenRector as causing bugs without full context (#5535)
2024-01-31 21:40:00 +00:00
Tomas Votruba e377d35b97 Updated Rector to commit 2efd564640e94edf09f95f3872adb11e059f5fb8
2efd564640 [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#5534)
2024-01-31 14:27:18 +00:00
Tomas Votruba ec3d78eef4 Updated Rector to commit 5a3a59c50c7810296274eb4408737c8f2f8921e7
5a3a59c50c Remove collectors, as performance very costly and not practically useful (#5470)
2024-01-15 22:10:40 +00:00
Tomas Votruba 1daa932d00 Updated Rector to commit 5c0397910fbd9735c375c4632ec116ebe8609f25
5c0397910f Add missing rule doc (#5426)
2024-01-02 21:38:33 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +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 c520a88733 Updated Rector to commit cd9ea2c717511f81e7bb7298a62f8ea558441a37
cd9ea2c717 [Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#5310)
2023-12-02 13:42:50 +00:00
Tomas Votruba de5ec400ca Updated Rector to commit aac9573e0ef040c236a569a9cbbe965af61ab0b8
aac9573e0e [Privatization] Skip call non-private method on non-final class on PrivatizeLocalGetterToPropertyRector (#5309)
2023-12-02 08:58:47 +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 f8dc5ef396 Updated Rector to commit 84bcfebdf7e9f522c8f9f9e97814c82d3d5d3315
84bcfebdf7 [CodingStyle] Remove AddArrayDefaultToArrayPropertyRector as based on docblock types and public contract, better use type declaration set instad (#5298)
2023-11-28 20:19:53 +00:00
Tomas Votruba c92985cc7e Updated Rector to commit d864d7b856e7bb8b7e98db96793ceb1036c1bf7b
d864d7b856 [Privatization] Skip method with parent call (#5283)
2023-11-23 16:52:05 +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 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 95d1af621f Updated Rector to commit 640a49bb8dded439c57723ea4d047f1c9782b78f
640a49bb8d move collectors to src/Collector namespace for easy discovery, add MockedClassCollector (#5055)
2023-09-30 09:19:11 +00:00
Tomas Votruba 4ea05c5a5f Updated Rector to commit e530fc1e1a98faa22509115e79de5e5f2997208d
e530fc1e1a Introducing Collectors - final step 🥳  - processing collected data + test case (#4970)
2023-09-19 11:53:28 +00:00
Tomas Votruba 6942fe920b Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
780c5afe7b [automated] Apply Coding Standard (#5031)
2023-09-17 00:30:04 +00:00
Tomas Votruba 01c783a2bf Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94
c8ff683305 Remove inline-@var use (#5028)
2023-09-16 11:45:20 +00:00
Tomas Votruba f73bcd4ef8 Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
c97e4ffb05 [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954)
2023-09-09 22:49:40 +00:00
Tomas Votruba 81d65055b2 Updated Rector to commit 2d5d72f3ba66a63acb991107ba763e147c9840f4
2d5d72f3ba [Naming] Introduce startsWith() to acompany endsWith() naming check (#4953)
2023-09-09 14:19:44 +00:00
Tomas Votruba 7540a5e283 Updated Rector to commit 9a322af593a3ed9de20a535f613ed25e12ecc823
9a322af593 BC: Separated regex matching in NodeNameResolver->isName() (#4951)
2023-09-09 14:08:25 +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 fb1f63e38b Updated Rector to commit 0bdace5619d44c2ab3b30254f3ef06fe5e90e6fa
0bdace5619 [Php80] Handle crash Property ReflectionEnum::$betterReflectionClass does not exist on AddParamBasedOnParentClassMethodRector on Enum usage (#4758)
2023-08-10 14:35:27 +00:00
Tomas Votruba e7097335cd Updated Rector to commit b93e285a4a72ef12d4892852118d5ab7b1b48bdd
b93e285a4a [DX] Remove AddDefaultValueForUndefinedVariableRector as can generate broken code and depends on context (#4729)
2023-08-09 10:56:45 +00:00
Tomas Votruba 6703dc85ab Updated Rector to commit ea91c99695a8a8108bad4428c7febcf4222a363d
ea91c99695 Reduce private accessor usage on get parent class name not autoload (#4726)
2023-08-09 02:16:25 +00:00
Tomas Votruba ad2ad2a097 Updated Rector to commit 77258018af10a7c23477831e0eab49dd7c0b2bfe
77258018af Trigger Rectify (#4701)
2023-08-07 11:02:42 +00:00
Tomas Votruba 4cf14d6438 Updated Rector to commit 493e4f89c9f9a033668301cd4eee4df7e77df0cb
493e4f89c9 Skip code changes on unresolvable/unknown classes (#4619)
2023-08-07 10:55:35 +00:00
Tomas Votruba 9fac241be1 Updated Rector to commit e9a97469558e5e154a185bae388f214e1f0d5c56
e9a9746955 [PhpParser] Remove #[Required] on ClassLikeAstResolver (#4688)
2023-08-07 03:26:51 +00:00
Tomas Votruba 57bd04e032 Updated Rector to commit f45662a829357b0c98532611fce4c250459f54b7
f45662a829 [Privatization] Skip parent class unknown on PrivatizeFinalClassMethodRector (#4671)
2023-08-06 09:53:01 +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 855f7c2503 Updated Rector to commit 50a5bb4057387d3053c5ea1ecf22286ea04dff36
50a5bb4057 [BUGFIX] Ensure proper reprint with attributes for finalized classes (#4585)
2023-07-23 09:42:10 +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 4d62037b71 Updated Rector to commit 0893df020e01529a72933efee0c085752e24c4d2
0893df020e Skip rewindable generator (#4282)
2023-06-19 11:00:56 +00:00
Tomas Votruba a0d8cc6508 Updated Rector to commit 8550c092de01d1167d95922a77490c282f3154d5
8550c092de [Ast] Use ClassLikeAstResolver directly when possible (#4262)
2023-06-17 19:37:05 +00:00
Tomas Votruba d793888f8a Updated Rector to commit 53c6c5fcaf92b3ff40b6f45e476ff981b9028e95
53c6c5fcaf Remove Kind from doc mapper, as used just once (#4234)
2023-06-16 03:34:15 +00:00
Tomas Votruba 503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00
Tomas Votruba 3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba 2886ec2c81 Updated Rector to commit 5ba083c88dc02a30a03ecb2fc5925caa2d2f88c0
5ba083c88d Remove parent node fetch (#4143)
2023-06-09 17:42:49 +00:00
Tomas Votruba a48c21e135 Updated Rector to commit ebfe96b4e08b26439c2341cd45e87a7bc5f314fb
ebfe96b4e0 Drop AttributeKey::SCOPE in ClassMethodReturnTypeOverrideGuard (#4144)
2023-06-09 17:30:44 +00:00
Tomas Votruba bc14b9b983 Updated Rector to commit 0f100f0ec5c9f54afa8eafda0e7f2ce78c738529
0f100f0ec5 Drop AttributeKey::SCOPE in PrivatizeFinalClassMethodRector (#4140)
2023-06-09 17:06:47 +00:00
Tomas Votruba 368e973125 Updated Rector to commit be31c8faec553f9247f3c0d810648ec22b91b827
be31c8faec Remove ChangeGlobalVariablesToPropertiesRector as the scope might change after the variable is defined, better handle with PHPStan (#4086)
2023-06-05 14:37:00 +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 df2ad70dd3 Updated Rector to commit 4c782243fdb6b03474faa0076800048cb3ef0de9
4c782243fd Remove ChangeReadOnlyPropertyWithDefaultValueToConstantRector as overly detailed checks, better use PHPStan and refactor individually (#4028)
2023-05-30 13:09:27 +00:00