Commit Graph

546 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 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 e08ae92529 Updated Rector to commit fb312e00c38b17b096a7257151a4ec0571cd8607
fb312e00c3 [PHPStanStaticTypeMapper] Avoid double \ prefix on IntersectionTypeMapper (#5656)
2024-02-22 10:08:06 +00:00
Tomas Votruba 08cec1591e Updated Rector to commit 4951accb91a39af88d3903930112f2752e497076
4951accb91 [Renaming] New Rule: RenameFunctionLikeParamWithinCallLikeArgRector (#5554)
2024-02-22 09:08:40 +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 599ee7833e Updated Rector to commit be53faca08c2f5c3ebafb636e766788676f54d28
be53faca08 [Renaming] Remove namespace renames in ClassRename, as it should only rename references, not move to new namespace (#5487)
2024-01-21 21:13:24 +00:00
Tomas Votruba bddc91bccd Updated Rector to commit b71c3265d5f90745d52b081a1201e3d97617e14a
b71c3265d5 fix: RenameMethodRector should handle NullsafeMethodCall (#5444)
2024-01-07 16:56:38 +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 c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba 622a13c7e5 Updated Rector to commit fcd1b1aa6bbf59aaebf119a122d4f7aa045e15f1
fcd1b1aa6b [Performance][Renaming] Use FullyQualified on RenameClassRector (#5272)
2023-11-22 17:40:48 +00:00
Tomas Votruba e071d037e3 Updated Rector to commit 9fa5013b41ecee17113c56ad94f219bd1940e763
9fa5013b41 [Performance][Renaming] Remove unnecessary array_reverse() on RenameClassRector (#5266)
2023-11-19 15:48:32 +00:00
Tomas Votruba 5980d06d27 Updated Rector to commit 13284c60485e972ef72bf234b3c014c5f89e0d14
13284c6048 [Renaming][Performance] Re-structure check namespace only on renamed node got Namespace_ (#5265)
2023-11-19 03:14:20 +00:00
Tomas Votruba 318c07bf9f Updated Rector to commit e43a1cec56310b6762eb0b56d18f60402d5fd652
e43a1cec56 [Renaming] Handle Rename no namespace to namespaced class with existing use statements (#5264)
2023-11-19 02:55:19 +00:00
Tomas Votruba 83b81fcc4e Updated Rector to commit 889372f62a584ca43402eced083b99e2ffbe6784
889372f62a [AutoImport][Renaming] Handle same last name no namespace just renamed auto import (#5248)
2023-11-14 11:48:19 +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 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 b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba 0d6604344e Updated Rector to commit cbc632c1eda3f2b9aba3fba07b0f1b45cc58caec
cbc632c1ed RenameFunctionRector: prevent repeated isName() calls (#5003)
2023-09-12 11:58:35 +00:00
Tomas Votruba 3c6c1c03f8 Updated Rector to commit a2f70054a7d976acd2c73b06789095b998829be6
a2f70054a7 [DocBlock] Update docblock contents right in the rule (#4999)
2023-09-11 21:30:42 +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 5ab2aa34fb Updated Rector to commit 416e52ad9e2164bc7d8e11518e3c0165862cb1b3
416e52ad9e fix typo (#4956)
2023-09-09 18:21:23 +00:00
Tomas Votruba 6adcb19ec9 Updated Rector to commit 474b3a222684b9c343ba6b43ea5bd39b78fbef2a
474b3a2226 Faster name resolving (#4955)
2023-09-09 18:18:18 +00:00
Tomas Votruba e6e6042119 Updated Rector to commit 10eb09f02d825d01caf92e2c45c73dddf6aa3430
10eb09f02d [cleanup] Remove deprecated NonPhpRectorInterface, PseudoNamespaceToNamespaceRector and mysql to mysqli sets (#4927)
2023-09-06 16:03:21 +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 50e22e8613 Updated Rector to commit bcb51e81bc9cbc667017eea9240d7f8564848768
bcb51e81bc [Renaming] Deprecate PseudoNamespaceToNamespaceRector as too dynamic and unreliable, use the RenameClassRector instead (#4755)
2023-08-10 11:47:33 +00:00
Tomas Votruba d23a5ea440 Updated Rector to commit b23294698f066a48e35be76ba0f25616f48f375e
b23294698f [Renaming] Remove callables from class renames to avoid missed rename bugs, better handle with PHSPtan and custom rule (#4745)
2023-08-09 16:15:16 +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 994045415a Updated Rector to commit ad7d9b12ea0fa8bba78be8d0348daa6ecffe3abe
ad7d9b12ea [DX] Always init $this->hasChanged on Rector rule to ensure the flag is reset on same call on different file (#4454)
2023-07-09 11:49:50 +00:00
Tomas Votruba 67e1d2d61c Updated Rector to commit 3fa4bec792258ae18bf56c665d5ec3fa4938d475
3fa4bec792 [Renaming] Remove Scope filling from Name node on PHPStanNodeScopeResolver for RenameClassRector (#4422)
2023-07-05 12:18:11 +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 9d08d136fd Updated Rector to commit dfef34df2f634b87afe6940cc4671018fb81e26e
dfef34df2f Bump nikic/php-parser to 4.16.0 (#4343)
2023-06-25 16:18:38 +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 53778ac6ff Updated Rector to commit 77aeaa4dcc2fc99070999af7a28d17c4d078a4b5
77aeaa4dcc Remove RemoveEmptyMethodCallRector as better handled by PHPStan (#4161)
2023-06-10 13:02:37 +00:00
Tomas Votruba f67dcbaeac Updated Rector to commit f8c6c5cb6a23ce48ddd576dffceff52d440c4a07
f8c6c5cb6a Remove parent node from RenameMethodRector (#4154)
2023-06-10 09:11:14 +00:00
Tomas Votruba 276b450e8a Updated Rector to commit bc61ac2b0a95c93a557ccfe4f371f361ec09ab2c
bc61ac2b0a Remove parent node from StringClassNameToClassConstantRector (#4145)
2023-06-10 06:35:34 +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 9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba d48ca72a44 Updated Rector to commit d9908088500d235348a84de13f96823bc03b4706
d990808850 Remove PARENT_NODE from PseudoNamespaceToNamespaceRector (#3988)
2023-05-27 10:31:41 +00:00
Tomas Votruba d3dfbb4638 Updated Rector to commit 2f84187dc1d6db09788adf8346339d6854902db5
2f84187dc1 Remove RenameNamespaceRector, better handle by IDE or explicit RenameClassRector (#3979)
2023-05-26 21:28:23 +00:00
Tomas Votruba af39f1cc41 Updated Rector to commit 56e13466c3ba3c23c0eb5e7e3af6908433c0c6af
56e13466c3 [CI] Enable zend.assertions=1 on CI (#3823)
2023-05-13 16:44:37 +00:00
Tomas Votruba c8378bb7c9 Updated Rector to commit ed494161ee091037ea7cb791e569abb1bf2ff990
ed494161ee Drop AttributeKey::SCOPE in ClassRenamer (#3806)
2023-05-13 13:41:02 +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 107da04b98 Updated Rector to commit 08d93e01b9341fdea9a22f52dc5fbce542c62245
08d93e01b9 [automated] Apply Coding Standard (#3713)
2023-04-30 00:40:55 +00:00
Tomas Votruba 73330a66b6 Updated Rector to commit b3e269603f8d7162c906b2409497624661baa559
b3e269603f [Renaming] Prevent overly greed type resolving in RenamePropertyRector (#3700)
2023-04-28 11:58:31 +00:00
Tomas Votruba 2c70f375ca Updated Rector to commit 7d16e3d57e8942a535551e9c7d8725fc91329993
7d16e3d57e [Renaming] Improve performance of RenamePropertyRector (#3698)
2023-04-28 10:31:03 +00:00
Tomas Votruba 259585c967 Updated Rector to commit ea454bb871796a2e9aaf48e3d842c92245809818
ea454bb871 [Renaming] Improve performance of RenameFunctionRector (#3699)
2023-04-28 05:49:18 +00:00