Commit Graph

610 Commits

Author SHA1 Message Date
Tomas Votruba
3240f9e962 Updated Rector to commit 58abec4c5663a5d92ac6cd0a2eef6aace80ab408
58abec4c56 [automated] Apply Coding Standard (#5665)
2024-02-25 00:28:21 +00:00
Tomas Votruba
dc98feb11d Updated Rector to commit 290926cc8b93331dd715d7ea061847dafbc1821a
290926cc8b  [Util] Make consistent new line splitter to Util  (#5651)
2024-02-21 15:30:52 +00:00
Tomas Votruba
d7100344be Updated Rector to commit 7e741fee0551af70bb6b3f45c95905fdf9d618ce
7e741fee05 Keep comments in annotations when converting them to attributes (#5650)
2024-02-21 15:17:39 +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
233401c07f Updated Rector to commit 55e7c91cb1597e7c12f111689381ac5848540ec5
55e7c91cb1 fixed issue when indent is not 4 (#5479)
2024-01-19 15:01:25 +00:00
Tomas Votruba
f605aeb93f Updated Rector to commit 76714b95f240409a6fad92725ea19c870ed3ff14
76714b95f2 [Printer] Remove unnecessary BetterStandardPrinter::pStmt_Use() (#5478)
2024-01-18 20:41:36 +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
8e7d3b2d52 Updated Rector to commit 595086559f9ed5196d53c6dbea907043153bda61
595086559f [psr-4] Update Rector core test reference (#5410)
2024-01-01 09:05:02 +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
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
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
67ef720476 Updated Rector to commit 780ef4010d45be3e89844dec073ce2078a10f96f
780ef4010d Deprecated PhpDocInfo::markAsChanged() to ensure doc block is changed directly in the Rector rule (#4987)
2023-09-11 14:54:44 +00:00
Tomas Votruba
4c20b79d3c Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
ae3608b3d6 Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983)
2023-09-11 09:47:14 +00:00
Tomas Votruba
aaa2d927d5 Updated Rector to commit cda957718f1eb9d1629bc27ed8b060c6f41ce033
cda957718f [Performance][Printer] Reduce regex check use( no space on BetterStandardPrinter (#4971)
2023-09-10 18:48:21 +00:00
Tomas Votruba
5b0f55fa4b Updated Rector to commit 7433ffeb07507632659635152b35af66320d1e07
7433ffeb07 [Printer] Reduce regex for end with \n detection on BetterStandardPrinter (#4957)
2023-09-10 01:02:05 +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
3fe8eb8e32 Updated Rector to commit a29e3afdb65a6378eb91a9fec7c706d54366633b
a29e3afdb6 Make indent size and char fetchable (#4762)
2023-08-11 09:14:44 +00:00
Tomas Votruba
38d5eacbd5 Updated Rector to commit 56d1c1822bd594c2643a0f5431444d1454cf2335
56d1c1822b [Printer] Fix printing PHPStan AlwaysRememberedExpr with add unwrapper inside BetterStandardPrinter::p (#4629)
2023-08-03 09:57:07 +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
e24fff2c36 Updated Rector to commit 68d092c547af462f8e036a6d06bd343e15103901
68d092c547 [DX] Make use of SimpleParameterProvider directly, deprecate RectorConfigProvider (#4460)
2023-07-09 13:51:12 +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
fba1230ae5 Updated Rector to commit 0d9828f9d90ee0dd4b50f759c150575785cce6b8
0d9828f9d9 [automated] Apply Coding Standard (#4265)
2023-06-18 00:34:36 +00:00
Tomas Votruba
455a66f4b6 Updated Rector to commit 628260708ccc40d17e1ef2147774170ac030597f
628260708c [Performance] Only map comment to php_doc_info for Stmt and Param on BetterStandardPrinter (#4250)
2023-06-17 07:46:33 +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
f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba
9e103260ec Updated Rector to commit 2f3e9be0ae108c75f9de8fbf2ea92f0393ad9839
2f3e9be0ae [DX] Test BetterNodeFinder with Laravel container (#4106)
2023-06-08 14:23:03 +00:00
Tomas Votruba
a97ef30b94 Updated Rector to commit fe33aad6cbff85882e60ef2461e929d5b1957456
fe33aad6cb [Printer] Rename method decorateInlineHTMLOrNopAndUpdatePhpdocInfo() to moveCommentsFromAttributeObjectToCommentsAttribute() (#4110)
2023-06-07 16:12:13 +00:00
Tomas Votruba
348aef8907 Updated Rector to commit f4f94bcd4bb9fd9819ae11b1d2b06b74a078c205
f4f94bcd4b [NodeTraverser] Remove double apply FileWithoutNamespace, remove recursive lookup stmts on BetterStandardPrinter (#4097)
2023-06-07 02:01:28 +00:00
Tomas Votruba
9e58a778f4 Updated Rector to commit 02b93319906ffa9842cbab8f80d58d8b5576cf43
02b9331990 [Traverser] Add BreakingRemovalGuardNodeVisitor to reduce parent attribute usage on BreakingRemovalGuard (#3978)
2023-06-04 09:14:10 +00:00
Tomas Votruba
062552321e Updated Rector to commit 4635c3936d920f9350e985772156a51b40604c9c
4635c3936d [PHP+HTML cleanup] Remove MixPhpHtmlDecorator (#4054)
2023-06-03 13:48:48 +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
4fa709b27b Updated Rector to commit 05c4367a51af6f0d4c56a9ab466aa32a873acc83
05c4367a51 [Printer] Reduce parent attribute usage on BetterStandardPrinter on print ArrowFunction comment (#3855)
2023-05-15 08:40:30 +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
0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +00:00
Tomas Votruba
7a5d9d8a62 Updated Rector to commit 6091bdd821a72aa9df52363d944b003ec2fbaf1d
6091bdd821 [Printer] Avoid undefined index 0 on printing FileWithoutNamespace (#3459)
2023-03-05 23:49:34 +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
105747beb9 Updated Rector to commit 7a6531d32db4db72241628feb6f8257e2df3720e
7a6531d32d [Core][Printer] Re-use resolveNewStmts() from BetterStandardPrinter on FormatPerservingPrinter (#3411)
2023-02-25 02:42:36 +00:00
Tomas Votruba
d7f9660bce Updated Rector to commit f9f4217a6d0cf0a13f17af52a4c4f52e246fbe5b
f9f4217a6d [e2e] [printer] Fix short open tag mixed php+html cause surplus <?php  (#3395)
2023-02-21 09:58:59 +00:00
Tomas Votruba
d17680f2a5 Updated Rector to commit d8aa22b6713269ddafa80679777b3de9a4f456dd
d8aa22b671 [Printer][EarlyReturn] Enable InlineHTML on RemoveAlwaysElseRector (#3387)
2023-02-16 20:39:52 +00:00
Tomas Votruba
ab02d967b9 Updated Rector to commit 24a976b881b31b643138f24fc089ad8f77898689
24a976b881 [Printer] Ensure disable flag isRequireReprintInlineHTML on change file on MixPhpHtmlDecorator (#3383)
2023-02-15 12:36:22 +00:00
Tomas Votruba
86f1745c0a Updated Rector to commit a9e4d4b54b556f23e51f6bab81e1d867b185d010
a9e4d4b54b [CodeQuality][Printer] Handle mix php+html on TernaryFalseExpressionToIfRector (#3382)
2023-02-15 12:10: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
f0d1fd41e5 Updated Rector to commit 3555ee38b86510be3f9ccb35fbcc8ac080b02b70
3555ee38b8 [Printer] Handle add Node after Nop not first stmt (#3312)
2023-01-28 09:29:15 +00:00
Tomas Votruba
162b97da87 Updated Rector to commit 33527d4e8d3b58bfebbac94330fd59f5be08b2b2
33527d4e8d [Printer] Move handle mix php+html to BetterStandardPrinter (#3310)
2023-01-27 08:27:34 +00:00
Tomas Votruba
599b96e995 Updated Rector to commit 226f3f5019fc58cc5aacdcc3625b8b8c6dabdbb8
226f3f5019 [Printer] Clean up nl usage on surplus tag check (#3307)
2023-01-25 23:59:13 +00:00
Tomas Votruba
be2e22ede3 Updated Rector to commit 2c353227e499072689cbb22d83b3483b3015025f
2c353227e4 [Printer] Handle Add Node after Nop statement inlineHTML (#3303)
2023-01-24 15:30:51 +00:00