Commit Graph

495 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 83bfbc18b8 Updated Rector to commit d67342e4e23b577a259e2d2af0ed64461db9968b
d67342e4e2 Fix original quotes in PregReplaceEModifierRector (#5827)
2024-04-17 10:04:21 +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 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 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 3d9b6b2c99 Updated Rector to commit 620321b3833dd450a7de79a620a07c7131342422
620321b383 Add ReturnTypeFromStrictBoolReturnExprRector support for if/else returns (#5384)
2023-12-23 21:26:40 +00:00
Tomas Votruba 168d6a72a1 Updated Rector to commit 120e0ccfc40bc696d23a9e1d93b6662ea7dfa682
120e0ccfc4 Bump to php parser 4.18 (#5362)
2023-12-16 15:55:14 +00:00
Tomas Votruba 39e43b6cca Updated Rector to commit dc9573d9bd60ec966db626be91c13cc6a5c4bbef
dc9573d9bd [Php55] Make StringClassNameToClassConstantRector configurable to keep first pre-backslash string configurable (#5354)
2023-12-11 13:06:54 +00:00
Tomas Votruba d471c4dbd9 Updated Rector to commit af55788ca8f814c658d39444a9cefa67135805b6
af55788ca8 [PHP 5.5] Remove extra preslash in class reference, as in practice removal manually (#5338)
2023-12-08 11:29:59 +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 be951e04e1 Updated Rector to commit 878f381d30ddb07c68dfbe828e9cd6e2b77b6c31
878f381d30 [Php55] Check str_contains * before fnmatch() early on StringClassNameToClassConstantRector (#4990)
2023-09-11 13:37:38 +00:00
Tomas Votruba 1a37c5b7e2 Updated Rector to commit e4eec89c47fb767dbadb65662c12e2e3b6650cd5
e4eec89c47 [Performance][Php55] Remove regex replace e on RegexMatcher (#4974)
2023-09-10 19:01:55 +00:00
Tomas Votruba 1e7c1e02b0 Updated Rector to commit ead7a25b38797531d9e6a755492200d59b05b1ae
ead7a25b38 Remove regex and fnmatch again on NodeNameResolver (#4968)
2023-09-10 13:41:40 +00:00
Tomas Votruba 5995088c4e Updated Rector to commit ef6c8bcc96bcb35a832ca0e798d580735c58f9ef
ef6c8bcc96 [NodeNameResolver] Check regex start delimiter and contains * on NodeNameResolver to use fnmatch() (#4964)
2023-09-10 13:01:10 +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 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 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 bff94f9200 Updated Rector to commit ceab6d71bb3436c1c613651a12af55954ab3f7bf
ceab6d71bb Add currentStmt property on AbstractRector to allow pull Scope from it on deep Expr (#4437)
2023-07-19 11:08:33 +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 5db0586b82 Updated Rector to commit 205df9013af5e05034441aa6088599532f5fef05
205df9013a [TypeDeclaration] Add Encapsed string support to AlwaysStrictScalarExprAnalyzer (#4382)
2023-06-30 11:59:36 +00:00
Tomas Votruba 6ea61fb33b Updated Rector to commit d9f02cadebe0cb3b9ec43be05e000805f31bcb18
d9f02cadeb [Php55] Clean up FullyQualified assigned to FullyQualified on StringClassNameToClassConstantRector (#4284)
2023-06-19 15:33:20 +00:00
Tomas Votruba 30d2bb9a83 Updated Rector to commit 4b05faa06d30e8d3f47fb3c3b37dad8548ae5230
4b05faa06d [Php55][NodeTypeResolver] Handle crash on dynamic variable concat assign on StringClassNameToClassConstantRector (#4283)
2023-06-19 14:17:25 +00:00
Tomas Votruba a6399d5acf Updated Rector to commit 914171511561fab6062f5df923b12c276725c0b5
9141715115 Add failing test case for STOP_TRAVERSAL directly on refactor (#4185)
2023-06-12 00:49:37 +00:00
Tomas Votruba 57b6546504 Updated Rector to commit 4e02f78d6b8352fd24afc670f285453468742c3f
4e02f78d6b temporarily exclude autowire, to skip throws
2023-06-11 23:42:32 +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 0222a6ac50 Updated Rector to commit c6a5b762dea6a71041b413554baa26f4b2400a11
c6a5b762de StringClassNameToClassConstantRector: cheap checks first (#4151)
2023-06-10 06:56:35 +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 8135dd31be Updated Rector to commit 27ac0efdca63485c6e0ee27086cda9bc7b2e6c17
27ac0efdca Remove parent node lookup (#4138)
2023-06-09 16:23:18 +00:00
Tomas Votruba d11bfc6bb9 Updated Rector to commit af780c8f07bfe6fcf011789979369f03e279db44
af780c8f07 Removing parent node calls (#4137)
2023-06-09 15:59:30 +00:00
Tomas Votruba 2c295def16 Updated Rector to commit 82687502deb9d41ed79ed832baa09fe23f90d3f8
82687502de Avoid parent node lookup in RemoveEmptyClassMethodRector (#4129)
2023-06-08 23:05:51 +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 0256872962 Updated Rector to commit fdf11bab10f9e7e1d63b4e0dba1325b947391e5d
fdf11bab10 Refactor PARENT_NODE from StringClassNameToClassConstantRector (#3989)
2023-05-27 10:40:14 +00:00
Tomas Votruba ed0c750f6e Updated Rector to commit 26b32be535516bf80da94b85b2172b2ac64f9a7c
26b32be535 Remove PARENT_NODE from StringClassNameToClassConstantRector (#3928)
2023-05-22 13:58:34 +00:00
Tomas Votruba da149bb5b0 Updated Rector to commit 645071a650fc50d7e084378facaebcc868a52ba1
645071a650 Add test fixture for sprintf number + make use of getArgs() to get always an Arg type (#3822)
2023-05-13 17:20: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 4980a45b0b Updated Rector to commit 581fba01dfcc247be5dcec00903b72739b7eca6d
581fba01df [Php55] Add StaticToSelfOnFinalClassRector (#3629)
2023-04-19 07:12:58 +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 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 66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba b771e1ca1a Updated Rector to commit 58c8f170182d3350e21a3b141bb3971651943e63
58c8f17018 [CodingStyle] Add DataProviderArrayItemsNewlinedRector (#3271)
2023-01-10 11:07:38 +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 df7c74ec60 Updated Rector to commit 16647397cc155594371858f316bd82e9dd436117
16647397cc [Php55] Handle crash on curly parentheses delimiter on PregReplaceEModifierRector (#3144)
2022-12-03 09:23:44 +00:00