Commit Graph

164 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
e8cdd78f11 Updated Rector to commit 04e62d38cd1f1a0e01d8efc19b19b384cd8726e6
04e62d38cd Revert " [Php81] Skip execution operator on NullToStrictStringFuncCallArgRect…" (#5668)
2024-02-28 01:07:46 +00:00
Tomas Votruba
4da7518a07 Updated Rector to commit b95ff29edfb93a3f6d0abc62a89b4a5362838f17
b95ff29edf  [Php81] Skip execution operator on NullToStrictStringFuncCallArgRector  (#5667)
2024-02-27 18:31:13 +00:00
Tomas Votruba
3f928476d9 Updated Rector to commit 2c65489cfd178fbd0e4d2b52b504a7541e34bc59
2c65489cfd [Php81] Skip another possible cast array to string on NullToStrictStringFuncCallArgRector (#5589)
2024-02-09 08:50:13 +00:00
Tomas Votruba
e5f35d1a39 Updated Rector to commit 178ce5c65a820a5c42c7928486a044b44a976436
178ce5c65a  [Php81] Skip possible array on NullToStrictStringFuncCallArgRector  (#5587)
2024-02-08 13:13:45 +00:00
Tomas Votruba
914c0a8e27 Updated Rector to commit af4d3db31bacab922d47b2551cec66644e3568b7
af4d3db31b [PHP81] Skip after is_string on object call on NullToStrictStringFuncCallArgRector (#5572)
2024-02-07 10:34:12 +00:00
Tomas Votruba
e45bc25429 Updated Rector to commit 06fa177cb6524bdd1a3338ed5d98871ef7a5590e
06fa177cb6 Fix make ReadOnlyPropertyRector skip if traits are used, as not reliable (#5548)
2024-02-03 21:46: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
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
a28aa22831 Updated Rector to commit 27791d1456c5ade373a0ba9d818404805eee89f4
27791d1456  [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector  (#5532)
2024-01-31 13:37:12 +00:00
Tomas Votruba
566e0f2b70 Updated Rector to commit 985d5ea5109e1282f35370006ad7ac26df7789de
985d5ea510 cs
2024-01-17 14:38:19 +00:00
Tomas Votruba
0d611d897a Updated Rector to commit 07df7dc1a344c52711441149d61251a4fe10366d
07df7dc1a3 Remove collector interface and fix SpatieEnumClassToEnumRector already has underscore to double underscore (#5473)
2024-01-16 10:21:57 +00:00
Tomas Votruba
1142f3d356 Updated Rector to commit 86e740248314edf23ef3307ac2a804a54c898282
86e7402483 Allows to convert Spatie enum names to snake upper case (#5435)
2024-01-06 13:17:15 +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
1731eeac5d Updated Rector to commit befe096ca10f7476efeb082fb7c736ba7bd07af5
befe096ca1 [phpstan] tidy up bin files, group complex errors + Cleanup AddTypeToConstRector (#5405)
2023-12-31 20:56:31 +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
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
7932e9155e Updated Rector to commit 6ce58b1d3ddc917467a541c898ebaf828cbe2c59
6ce58b1d3d Remove AstResolver need from FirstClassCallableRector (#5093)
2023-09-30 19:29:15 +00:00
Tomas Votruba
4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba
09bdee3938 Updated Rector to commit 765e849e612553708296dd501375b49784ad1ca8
765e849e61 Narrow rule complexity, add custom PHPStan to check whole rule complexity tree and spot architecture flaws (#5025)
2023-09-19 13:41:47 +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
491915e31b Updated Rector to commit 5595f80ed176f93485f50ff6dabad79cedbb72dc
5595f80ed1 Update github actions/checkout from v3 to v4 (#4909)
2023-09-04 14:00:44 +00:00
Tomas Votruba
454b838af8 Updated Rector to commit 75717921e8661b5fc6f0ebbffe2e35bd86146202
75717921e8 MyCLabs enum equals + keeping methods  (#4645)
2023-09-04 07:26:59 +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
1f172665e6 Updated Rector to commit d8d4e8d0b244ba368e3ce8767343c71b108ec93c
d8d4e8d0b2 Revert removed ErrorType handling on NullToStrictStringFuncCallArgRector (#4793)
2023-08-14 20:02:59 +00:00
Tomas Votruba
426abe14c5 Updated Rector to commit 514df0a319b75f86b9b381ee0db7f95aadca32fb
514df0a319 Make NullToStrictStringFuncCallArgRector run without scope (#4792)
2023-08-14 14:35:49 +00:00
Tomas Votruba
867dc4426c Updated Rector to commit 6b7aac835934de48c034aa8b2bad886616566e06
6b7aac8359 [Php81] Remove IntersectionTypesRector as rely on docblock (#4784)
2023-08-14 06:41:08 +00:00
Tomas Votruba
9ccb6367c0 Updated Rector to commit 9b03d8367cd3c69b36b8b1aedf458b191f46655a
9b03d8367c [TypeDeclaration] Add ReturnUnionTypeRector (#4655)
2023-08-05 10:29:33 +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
f083e0de01 Updated Rector to commit 031f2de2b8043a972f1a19f07f06ad2fc9793df3
031f2de2b8 [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector (#4593)
2023-07-25 04:02:12 +00:00
Tomas Votruba
f7109e0cbd Updated Rector to commit 490bd72c85d61feaf426d51d61bf9d04d40a418e
490bd72c85 [Performance][NodeManipulator] Avoid loop on search first variable named on next sliced next stmts on StmtsManipulator (#4537)
2023-07-19 10:36:07 +00:00
Tomas Votruba
8701fc25cc Updated Rector to commit 5a9315aab0e60e7a8086beb1c6891de678b2f003
5a9315aab0 Refactor MyCLabs\Enum\Enum::equals calls to comparisons (#4532)
2023-07-18 07:48:48 +00:00
Tomas Votruba
c86937fb6b Updated Rector to commit b9ace5f53f1640ab947922957e8179b2b50ff2cd
b9ace5f53f [PHP 8] Resources object upgrade - remove 2 rules as the upgrade require wholesome manual work (#4442)
2023-07-08 22:49:07 +00:00
Tomas Votruba
d53aabefd9 Updated Rector to commit 1d0feb251132d3b766945bc80d8f914c5279277f
1d0feb2511 [DX] Lower readonly PropertyManipulator complexity (#4429)
2023-07-06 21:07:00 +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
6d1a7ecf0c Updated Rector to commit 5370b722f8802f82ead12b12b2e3988f40192718
5370b722f8 [Php81] Remove cast check on NullToStrictStringFuncCallArgRector (#4320)
2023-06-22 19:01:05 +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
9d288b9b77 Updated Rector to commit 0fe5ee02fe3527bff3a1cd1c10508e2148ea8031
0fe5ee02fe Remove PARENT_NODE from ReadOnlyPropertyRector (#4150)
2023-06-10 07:01:52 +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
945b0d7947 Updated Rector to commit ea26fd7427e4c1d0a4032a9c86410ef41c32569b
ea26fd7427 Drop AttributeKey::SCOPE in AlwaysStrictScalarExprAnalyzer (#4139)
2023-06-09 17:07:32 +00:00
Tomas Votruba
74feb951d2 Updated Rector to commit 7740446b9569f8e03f64dedf4e1330fe52b98b3e
7740446b95 Drop AttributeKey::SCOPE in RemoveUnusedVariableAssignRector (#4141)
2023-06-09 17:06:55 +00:00
Tomas Votruba
8135dd31be Updated Rector to commit 27ac0efdca63485c6e0ee27086cda9bc7b2e6c17
27ac0efdca Remove parent node lookup (#4138)
2023-06-09 16:23:18 +00:00
Tomas Votruba
f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba
850512e46d Updated Rector to commit 4457cfad19971c45ff953b238f456590bb6fd67f
4457cfad19 Remove ConstantListClassToEnumRector as custom-made, not practical for enum upgrades (#4115)
2023-06-08 15:39:22 +00:00
Tomas Votruba
687f5efeef Updated Rector to commit d9cf3d4b9f427691349d4c1fbe2160241c1585b8
d9cf3d4b9f Remove removeNode() from RemoveUnusedPrivatePropertyRector (#4092)
2023-06-06 11:55:37 +00:00
Tomas Votruba
63ba316fef Updated Rector to commit d54d8b18a92f4248605bc90b5af2b2a22c39a93e
d54d8b18a9 Hook NewInInitializerRector to a Class_ node (#4088)
2023-06-05 15:06:32 +00:00