Commit Graph

5315 Commits

Author SHA1 Message Date
Tomas Votruba
c3f1a7f362 Updated Rector to commit 0242b2a9231beaff11fd94ec25224354a7e75cf9
0242b2a923 [automated] Re-Generate Nodes/Rectors Documentation (#5549)
2024-02-04 00:28:33 +00:00
Tomas Votruba
59f9eb1491 Updated Rector to commit 715103cdf1ecad0b4668f3b9e38582b3e5b55fbe
715103cdf1 Add support for YieldFrom into places where Yield_ is checked (#5499)
2024-02-03 22:50:20 +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
ef919121e0 Updated Rector to commit b0ad3649f9eb67550dea6dee01bb374f6bf675df
b0ad3649f9 Fix xdebug handling (#5544)
2024-02-03 07:09:19 +00:00
Tomas Votruba
2080c1456d Updated Rector to commit 1848724bf2308c31e53d0937013715fa7a40a9c3
1848724bf2 [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#8390) (#5545)
2024-02-02 21:56:32 +00:00
Tomas Votruba
5c93328f48 Updated Rector to commit cdc57233696fd680c8ebe3040b02c54d1da9c779
cdc5723369 [TypeDeclaration] Change bool to false or true docblock when union has false/true standalone type on ReturnUnionTypeRector (#5543)
2024-02-02 06:45:48 +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
71406bdeee Updated Rector to commit 3cfdad6ce695b2ea651c1d602e37f129f18e585e
3cfdad6ce6 [stabilize] Remove last children method checks (#5538)
2024-01-31 22:21:09 +00:00
Tomas Votruba
c49de5a16c Updated Rector to commit 5e7ecb623ad7fe78a660fe3d2275166492ebdb40
5e7ecb623a [stabilize] Remove child classes from MixedTypeRector as not reliable (#5537)
2024-01-31 22:01:40 +00:00
Tomas Votruba
b33dd4eba3 Updated Rector to commit 8b7c8c7d4f7ed05b36f595c01c632494193ba4bc
8b7c8c7d4f [stabilize] Remove family tree check from ClassMethodParamVendorLockResolver as not reliable (#5536)
2024-01-31 21:43:56 +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
a28aa22831 Updated Rector to commit 27791d1456c5ade373a0ba9d818404805eee89f4
27791d1456  [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector  (#5532)
2024-01-31 13:37:12 +00:00
Tomas Votruba
b63058a821 Updated Rector to commit b78db9f56f9b9ae95169d37726cb6d2a2f802623
b78db9f56f Remove unused variable (#5531)
2024-01-31 07:59:42 +00:00
Tomas Votruba
aace6ea006 Updated Rector to commit 7294e98a19531d580c3ba901c147ea0a52282595
7294e98a19 Fix AddMethodCallBasedStrictParamTypeRector if already has a type (#5530)
2024-01-30 23:57:24 +00:00
Tomas Votruba
4d9655bcf0 Updated Rector to commit daf8b4879cbd0c4a0f42691b81b8d0c7f63da855
daf8b4879c Revert broken load Phar support on BootstrapFilesIncluder (#5529)
2024-01-30 22:49:21 +00:00
Tomas Votruba
97c24103e6 Updated Rector to commit 6046c24443d9bfdfe5bf8638fb82e03703ee1df8
6046c24443 [CodingStyle] Return null on no change on StrictArraySearchRector (#5528)
2024-01-30 20:48:28 +00:00
Tomas Votruba
17078d56a8 Updated Rector to commit 2f041dc9beacc2f150344f4c169cc14d4c4991d9
2f041dc9be [DX] PHP sets should not disable all other version-based rules (#5527)
2024-01-30 20:43:47 +00:00
Tomas Votruba
89734ded6b Updated Rector to commit a6b0d2c732d9532940bce76d45d83d41482c0f5a
a6b0d2c732 [DX] Skip vendor warning in case of downgrade (#5526)
2024-01-30 20:28:41 +00:00
Tomas Votruba
e3df11f1c1 Updated Rector to commit 0ff8cb0a99db5de31bb999977a5a417bb282e4d2
0ff8cb0a99 [DX] Warn about run on /vendor directory (#5525)
2024-01-30 16:58:24 +00:00
Tomas Votruba
d54a5a3c50 Updated Rector to commit 6edf23f6b6cdc2982618ac311c6b7936d3fdcf16
6edf23f6b6 Added 4 methods into RectorConfigBuilder (#5524)
2024-01-30 16:16:28 +00:00
Tomas Votruba
5d13103f37 Updated Rector to commit 5979c0932fd77f40f601ea37687c466833e83ed7
5979c0932f Exclude finalize rule from private set, to keep safer (#5523)
2024-01-30 13:11:00 +00:00
Tomas Votruba
0301d3f400 Updated Rector to commit f680a070335ee796de19b25a98c2d4ac172b6fe8
f680a07033 [Autoloading] Proper fix for fix bootstrap phpunit.phar (#5522)
2024-01-30 10:08:17 +00:00
Tomas Votruba
8fe9717aee Updated Rector to commit 3c51cd8ebebd6840a0374e367308049c36761ee0
3c51cd8ebe [EarlyReturn] Improve RemoveAlwaysElseRector to handle multiple ElseIfs (#8178) (#5521)
2024-01-30 09:02:15 +00:00
Tomas Votruba
c828305041 Updated Rector to commit 58ef131772f7745a52c3990aeaea34a4892b6ae5
58ef131772 [Performance] Remove CollectedData on ProcessResult (#5520)
2024-01-30 05:37:48 +00:00
Tomas Votruba
89c895d127 Rector 0.19.5 2024-01-29 23:53:47 +00:00
Tomas Votruba
3c3170a04e Updated Rector to commit 171fddb1a1e9c54e194130ffe039809721d1f465
171fddb1a1 add withPhpSets() methods (#5519)
2024-01-29 23:52:40 +00:00
Tomas Votruba
bc9920ff03 Updated Rector to commit ca23ae894e833861e83533ed9f89fc7b3bf37fee
ca23ae894e [Autoloading] Allow to define bootstrapFiles([__DIR__ . '/some.phar']) on BootstrapFilesIncluder (#5518)
2024-01-29 23:33:42 +00:00
Tomas Votruba
7c6043c26c Updated Rector to commit 21aa474269373c93fa8d74e72e7e8ee817a38cee
21aa474269 Fix configured rule (#5517)
2024-01-29 21:10:17 +00:00
Tomas Votruba
5c1dd52a62 Rector 0.19.3 2024-01-29 19:04:58 +00:00
Tomas Votruba
826292d8c1 Updated Rector to commit 52398c81f9e88bde858cd2d79d481ae66190abc7
52398c81f9 [Php83] add string type to concat constant (#5516)
2024-01-29 16:18:28 +00:00
Tomas Votruba
94c55b84c0 Updated Rector to commit 1608ae8c9497bbfaf78ce54130ec304963ac6f2a
1608ae8c94 [Windows] Utilize Nette\Utils\FileSystem instead of Symfony\Component\Filesystem\Filesystem to write file (#5514)
2024-01-28 22:41:37 +00:00
Tomas Votruba
691f25c420 Updated Rector to commit e17f878d5adb301fda0de8f9da2d94d898a363c3
e17f878d5a [Templates] Fix syntax error on templates/rector.php.dist (#5515)
2024-01-28 20:53:14 +00:00
Tomas Votruba
758b064c65 Updated Rector to commit c5d4a78df1fe7ad674631f7373e127ff75eae896
c5d4a78df1 [Windows] Support replace \r\n on DocBlockInliner (#5513)
2024-01-28 18:53:09 +00:00
Tomas Votruba
2521815c9a Updated Rector to commit 1b4395caa0579c559e484b75b7fd9baadc307c0c
1b4395caa0 [DX] Allow Arg in value resolver, as often used and intuitive (#5512)
2024-01-28 10:00:13 +00:00
Tomas Votruba
c155c9cbaa Updated Rector to commit 040b839e71ec558c83553bc1462924e96993f6f0
040b839e71 [Windows] Rework add windows support on tests CI (#5504)
2024-01-28 08:50:44 +00:00
Tomas Votruba
e47a59adcc Updated Rector to commit b107a16f98aecf2a5ff969e30ff48595daadc06d
b107a16f98 [Performance] Reduce repetitive FileSystem::read() on AbstractRectorTestCase (#5511)
2024-01-28 03:50:21 +00:00
Tomas Votruba
6752d80c19 Updated Rector to commit 63fbf41cc9a6cc66c720926beec4603892eb21d0
63fbf41cc9 [Formatter] Remove unused CompleteUnifiedDiffOutputBuilderFactory (#5510)
2024-01-27 23:54:33 +00:00
Tomas Votruba
120a7594fb Updated Rector to commit b2d76bd6eff80326b8f89a061f44b06cf90ba49a
b2d76bd6ef Improve config builder + add withAttributesSets() method (#5509)
2024-01-27 12:22:01 +00:00
Tomas Votruba
b6bd629be8 Updated Rector to commit 1fe8f3a7694b7fad2e6fee66b575fe2e05738824
1fe8f3a769 [tidy] Use code sample format (#5508)
2024-01-27 12:03:51 +00:00
Tomas Votruba
e41705aa94 Updated Rector to commit a6ace939a0cbccd31623d3e18677ea8791e69aab
a6ace939a0 [Configuration] Use array_merge() on RectorCnofigBuilder::withSets() (#5507)
2024-01-26 22:36:43 +00:00
Tomas Votruba
9204913593 Updated Rector to commit a69e1ff013720727f052437d051ca5ab2c11b89e
a69e1ff013 Add PHPUnit 9 annotations support detectoin in "custom-rule" command, add RectorConfig::withPreparedSets() (#5506)
2024-01-26 21:43:08 +00:00
Tomas Votruba
7a20211779 Updated Rector to commit 701ab22b8681518f21e371c0b070f8f51a45b539
701ab22b86 ns fix
2024-01-26 19:50:18 +00:00
Tomas Votruba
f076295e84 Updated Rector to commit 0afec7e54615912ced1ffe83e9dccadc4f153c17
0afec7e546 [Config] Add RectorConfigBuilder (#5503)
2024-01-26 19:37:08 +00:00
Tomas Votruba
00449e1e5c Updated Rector to commit 35ddfb28bac90271f2317ae394471062c699d419
35ddfb28ba make literal separator optional, as rather coding style and not always desired (#5505)
2024-01-26 14:25:43 +00:00
Tomas Votruba
2a897741c0 Updated Rector to commit f47b38ed3980eb79113bb1b3b1289fb5a5c05c0f
f47b38ed39 typo
2024-01-25 17:33:33 +00:00
Tomas Votruba
b38303863b Updated Rector to commit bf59fa5aaf4500f6c555e590bc2692fdbda0fee3
bf59fa5aaf fix typo
2024-01-25 17:33:11 +00:00
Tomas Votruba
f28faf4aeb Updated Rector to commit 65dbbdd002c9ef71187752d92d1f15a969e7d2ad
65dbbdd002 cs
2024-01-25 17:26:13 +00:00
Tomas Votruba
8debf03f05 Updated Rector to commit 5b23ffe923e57d49b92156c15725ac63cb52a9b5
5b23ffe923 custom copy path fix (#5502)
2024-01-25 17:18:07 +00:00
Tomas Votruba
6dd3220875 Updated Rector to commit 174656a5f9719dba126a0f5ed68743c05ff53f3b
174656a5f9 [Testing] Deprecate FileInfoParser, use existing TestingParser instead (#5501)
2024-01-25 07:18:44 +00:00
Tomas Votruba
dd875cd0c9 Updated Rector to commit d09ae7400a75f7694a11c2d8353c2fd14b6419e3
d09ae7400a Add "custom-rule" command to make creating rules easy (#5498)
2024-01-25 00:06:40 +00:00
Tomas Votruba
744ab2e38b Updated Rector to commit 955a5de414501f77b80b321a90ee35d4fe49e9e2
955a5de414 Add gitlab to "setup-ci" command (#5497)
2024-01-24 21:26:26 +00:00
Tomas Votruba
29d3544133 Updated Rector to commit 7584d25d55cd0a2e7c11dbc865c93a029c6047c3
7584d25d55  [AutoImport] Skip start with <?= short open tag on auto import  (#5496)
2024-01-24 12:46:29 +00:00
Tomas Votruba
cd34331aa7 Updated Rector to commit c2cdcd3922d06924acfbf4a792eec61dccbee03e
c2cdcd3922 [CodeQuality] Fix logic start with [^ on SimplifyRegexPatternRector to ensure only skip on this case (#5495)
2024-01-23 16:37:59 +00:00
Tomas Votruba
aa518bb95d Updated Rector to commit dd02659ec90240c9452ccb86e48fb53879572935
dd02659ec9 [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector (#5494)
2024-01-23 15:52:42 +00:00
Tomas Votruba
678e34b775 Updated Rector to commit bcce8e3d240861cdb36cbf76b68672fa829f347d
bcce8e3d24 Fix doc instanceof rules link (#5493)
2024-01-23 11:08:03 +00:00
Tomas Votruba
3437ca57ce Updated Rector to commit ab78d14e35aa95519a7fbb2472ef7a7e087e1397
ab78d14e35  [PHPStan] Clean up PHPStan ignore errrors  (#5492)
2024-01-23 10:53:22 +00:00
Tomas Votruba
e4d714cf5f Updated Rector to commit f7caedf1b61070322bfb44bb266fbf26f8c993d3
f7caedf1b6 [Performance][PhpParser] Deprecate InlineCodeParser::parse(), extract into parseFile() and parseString() (#5482)
2024-01-23 09:41:00 +00:00
Tomas Votruba
e7c602cd32 Updated Rector to commit 2d316449ada315992789eff3380e836adf997767
2d316449ad [Config] Restore default values for RectorConfig->parallel() config similar to original <=0.18.x version (#5472)
2024-01-23 09:40:17 +00:00
Tomas Votruba
c36d19ef56 Updated Rector to commit aa66151ff14da601b4b155f4a876ad2a2070259c
aa66151ff1 [Performance] Remove unnecessary FunctionLikeParamPositionNodeVisitor (#5491)
2024-01-22 14:26:31 +00:00
Tomas Votruba
8356da3ba2 Updated Rector to commit e1effe71627ad76eee1532420cf1a3430abff150
e1effe7162 Update README.md (#5490)
2024-01-22 12:43:37 +00:00
Tomas Votruba
0fc99839e2 Updated Rector to commit a2ff229df99785b6b51721d929a750f51e72f57a
a2ff229df9 Fix phpstan (#5489)
2024-01-21 23:21:57 +00:00
Tomas Votruba
b140c86242 Updated Rector to commit 46dd96122bdeb7b893f518bd131c69093b6da752
46dd96122b [Renaming] Remove rename class name (#5488)
2024-01-21 23:15:27 +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
72af333641 Updated Rector to commit 3dac3a00d8a9e306bacc1ae2f9ded092dc95c212
3dac3a00d8 [Performance] Cache PHP version features on reading composer.json on PhpVersionProvider (#5484)
2024-01-21 01:12:31 +00:00
Tomas Votruba
3ea4c627d4 Updated Rector to commit 663f526966313e0f178c088ea667119490404da9
663f526966 remove invalid data provider types (#5483)
2024-01-20 21:59:39 +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
6cacf30624 Updated Rector to commit 7e2495e5f572bb566a845a0e1a6329cf141f872d
7e2495e5f5 [Php70] Skip inside Encapsed on ThisCallOnStaticMethodToStaticCallRector (#5481)
2024-01-19 14:05:32 +00:00
Tomas Votruba
bc96a99895 Rector 0.19.2 2024-01-19 10:58:30 +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
d67d5653a7 Updated Rector to commit 863a5ed69a150aed2c87038ef35421ee1626abd3
863a5ed69a [DX] Depreate heavy and conflicting Symfony/Twig/PHPUnit level sets (#5477)
2024-01-17 17:39:51 +00:00
Tomas Votruba
566e0f2b70 Updated Rector to commit 985d5ea5109e1282f35370006ad7ac26df7789de
985d5ea510 cs
2024-01-17 14:38:19 +00:00
Tomas Votruba
bfa367259d Updated Rector to commit 6d0abe7b49908c66940c7b4065cd28f0d66fbf45
6d0abe7b49 [Autoload] Remove src/core_namespace_aliases.php (#5476)
2024-01-17 11:38:29 +00:00
Tomas Votruba
7b5aa03f24 Updated Rector to commit fb6241fb6725b19f348fd05bc3430828c07196eb
fb6241fb67 Revert "[Autoload] Add false value for autoload on class_alias() on core_namespace_aliases.php" (#5475)
2024-01-17 11:26:39 +00:00
Tomas Votruba
6ae9f427db Updated Rector to commit 6a1b2746dfe2116c1878396d4acbb92dd4b70526
6a1b2746df [Autolaod] Add false value for autoload on class_alias() on core_namespace_aliases.php (#5474)
2024-01-17 11:14:48 +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
35d4de2656 Updated Rector to commit ee89fb7b82b6fa37412bd5d0cbaac9b49258eb3f
ee89fb7b82 remove non existing collector aliases
2024-01-16 00:20:08 +00:00
Tomas Votruba
f153850ba3 Updated Rector to commit 044c4b9b82daf55525effe6adfc810b43e0d01e8
044c4b9b82 Bump PHPStan to 1.10.56 (#5471)
2024-01-15 22:14:07 +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
e24202f0b6 Updated Rector to commit 34ab8dc0f9a7e8b7cfa1a88cdf36ced9020964f8
34ab8dc0f9  [Performance] Remove unused AttributeKey::ARGUMENT_POSITION  (#5469)
2024-01-15 20:19:14 +00:00
Tomas Votruba
2bba0dd55b Rector 0.19.1 2024-01-15 18:02:43 +00:00
Tomas Votruba
dbbdf42842 Updated Rector to commit 2ed1e94d153b5e40803275a7c1394be234d0cfae
2ed1e94d15 Restore timeout to keep compatible with formater CI runs, based on community feedback (#5468)
2024-01-15 18:01:33 +00:00
Tomas Votruba
bc8f465840 Updated Rector to commit e17f4526a7aa8344d0bfbf61d16d125970a3d31a
e17f4526a7 Fix RectorParser::parseString() parameter name (#5467)
2024-01-14 17:53:17 +00:00
Tomas Votruba
02f3386770 Updated Rector to commit deb4daed28666606b032e3e0df1a50e01a5c2a72
deb4daed28 [automated] Apply Coding Standard (#5465)
2024-01-14 00:30:50 +00:00
Tomas Votruba
1cb0be7069 Updated Rector to commit b0f1e6354fed26a46ea5ebac73c6d688cc85068b
b0f1e6354f [Performance] Call UnchangedFilesFilter->filterFileInfos() only once on FilesFinder (#5464)
2024-01-13 20:47:59 +00:00
Tomas Votruba
35bb56366b Updated Rector to commit 38d716ecec295b96a94cc2db9b3091fc1ca0ea94
38d716ecec [Performance] Remove duplicate filter extension files on FilesFinder (#5463)
2024-01-13 19:16:19 +00:00
Tomas Votruba
455fba49f9 Updated Rector to commit 9d310ce5daca61f51f35e3c8755a442998f1c536
9d310ce5da Skip null type in ReturnTypeFromStrictScalarReturnExprRector as often not desired (#5462)
2024-01-13 09:43:24 +00:00
Tomas Votruba
6ab38a869f Updated Rector to commit 2ac26e77e63664f3e250af12f021696c60ca0df4
2ac26e77e6 Cache comment consistency (#5461)
2024-01-13 01:51:20 +00:00
Tomas Votruba
8b20f236c0 Updated Rector to commit 2ec55701f292770fc7be3ca6e434d437e59c333b
2ec55701f2 [Performance] Fix filter cache on SkippedClassResolver (#5460)
2024-01-13 01:44:47 +00:00
Tomas Votruba
bebd959a24 Updated Rector to commit ac072bc8af186b2c86256aa7d29e52bb608ece27
ac072bc8af feat: add an option to skip renaming promoted property (#5457)
2024-01-11 23:02:48 +00:00
Tomas Votruba
e61f4b3c7b Updated Rector to commit f24b01ae0af6cdf4517fee0d74d79cc39d31f602
f24b01ae0a Remove CI status for rector/phpstan-rules on Readme (#5456) (#5458)
2024-01-11 15:31:55 +00:00
Tomas Votruba
2b3879001d Updated Rector to commit 061ddc360ad8fcc5c237a77463d1d62a562c5d14
061ddc360a Remove CI status for rector/phpstan-rules on Readme (#5456)
2024-01-10 22:12:13 +00:00
Tomas Votruba
97a6bd58e9 Updated Rector to commit 54a11ee44ac367532d5acaaa462928742aa24177
54a11ee44a [chore] Make use of symplify/phpstan-rules (#5455)
2024-01-10 21:29:12 +00:00
Tomas Votruba
90cf83ccbe Updated Rector to commit d2818f6b229beca01ee602ad245426a12199baca
d2818f6b22 [Reflection] Remove unnecessary ReflectionClass object creation on create ReflectionMethod (#5454)
2024-01-10 20:27:28 +00:00
Tomas Votruba
969e0174a1 Updated Rector to commit c02e5294b647a2aa7d83c8b2381dffbc7768b428
c02e5294b6 [Performance] Using PathSkipper in FilesFinder (#5452)
2024-01-10 14:04:28 +00:00
Tomas Votruba
b68c88f0b4 Updated Rector to commit f68d9f89cece7c081c431ddeeafe2d317514a1cc
f68d9f89ce [Performance] Extract PathSkipVoter to dedicated service and call before Filesystem::read() (#5451)
2024-01-10 13:03:20 +00:00
Tomas Votruba
5a61fded6a Updated Rector to commit e231caaf0ad81f75b287fb7b2b47f720627a7ca4
e231caaf0a [Performance] Remove loop StmtsAwareInterface on PHPStanNodeScopeResolver (#5450)
2024-01-10 09:45:32 +00:00
Tomas Votruba
ca876bf90c Updated Rector to commit 9193b276de2d9e51e063740a9fea61a559750f19
9193b276de Clean up concat empty string on regex constant usage (#5449)
2024-01-10 05:55:03 +00:00
Tomas Votruba
cc3c45157f Updated Rector to commit 5a156bea4f702a08d45928c783daf3153c6bd2de
5a156bea4f [Php80] Handle NestedAnnotationToAttributeRector with empty new line (#5448)
2024-01-09 08:51:33 +00:00
Tomas Votruba
503f4ead06 Rector 0.19.0 2024-01-09 00:49:06 +00:00
Tomas Votruba
b911b341f7 Updated Rector to commit 32d5fce356ebe91267278ee8d3b574c928cf15d6
32d5fce356 add release notes generator dep
2024-01-09 00:19:58 +00:00
Tomas Votruba
0a2b185bda Updated Rector to commit 08ac19c956c2608188bca81044034bc2590a8d55
08ac19c956 [cs] Make use of new ECS config (#5445)
2024-01-08 15:17:51 +00:00
Tomas Votruba
f775017f74 Updated Rector to commit e3ccf175943f4b44c521029c090c6907b83d4a6c
e3ccf17594 Fix scoped e2e to load rector/rector:dev-main (#5447)
2024-01-08 13:55:32 +00:00
Tomas Votruba
911e446bd5 Updated Rector to commit 7e566722a08a546858fa67d73915c9dff9a0c018
7e566722a0 [Php80][CodeQuality] Handle crash on ChangeSwitchToMatchRector + TernaryFalseExpressionToIfRector on under if else (#5446)
2024-01-08 13:46:06 +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
2a79360f1b Updated Rector to commit 7f2155d5c0058a002790c05cae54b49405e154ac
7f2155d5c0 [DX] add RectorConfig::command() to ease external command registration (#5443)
2024-01-07 12:14:43 +00:00
Tomas Votruba
33f8d9f054 Updated Rector to commit 3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f
3751c94d26 Revert "[DX] Make command default autotag" (#5442)
2024-01-07 12:07:05 +00:00
Tomas Votruba
816ddfc830 Updated Rector to commit 2f5a252ea9bac10994e08623e9371ec132045880
2f5a252ea9 [DX] Make command default autotag (#5441)
2024-01-07 12:05:03 +00:00
Tomas Votruba
dd2b386e30 Updated Rector to commit c9608a0f11d8a58224b33c8d2695f210a81816bc
c9608a0f11 [automated] Re-Generate preload.php (#5439)
2024-01-07 00:33:25 +00:00
Tomas Votruba
29eada363c Updated Rector to commit d3791938add9fe1faddfd404ab76183235c1df2f
d3791938ad [automated] Apply Coding Standard (#5440)
2024-01-07 00:31:04 +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
22304be44f Updated Rector to commit a8cc19a3c0387f082fd432e04afce363a90ba5b0
a8cc19a3c0 [NodeTypeResolver] Handle crash PHPStan\File\CouldNotReadFileException: Could not read file on IntermediateSourceLocator (#5438)
2024-01-06 11:06:34 +00:00
Tomas Votruba
3c0a61462c Updated Rector to commit 9a794f4ac4a100c1bffbf6af5a0c15f9628f3b90
9a794f4ac4 [TypeDeclaration] Handle with default null on ParamTypeByMethodCallTypeRector (#5437)
2024-01-06 06:01:40 +00:00
Tomas Votruba
8728d93e41 Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
55a787b9a2 [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
2024-01-06 05:25:58 +00:00
Tomas Votruba
2b45fbe814 Updated Rector to commit 3d71ae36b00e22fb5430e1812af95182c0e58904
3d71ae36b0 [TypeDeclaration] Skip re-assign with call and use as arg on StrictArrayParamDimFetchRector (#5434)
2024-01-05 13:43:19 +00:00
Tomas Votruba
b433dedda4 Updated Rector to commit d4f6b91f922bd52289d923aff07691d07e455cb1
d4f6b91f92 [TypeDeclaration] Allow both integer and string index array on StrictArrayParamDimFetchRector (#5433)
2024-01-05 13:13:40 +00:00
Tomas Votruba
feacfd524a Updated Rector to commit 971571be0cbcc21f1d6c7861c17423aef053b499
971571be0c [TypeDeclaration] Skip with empty() check on StrictArrayParamDimFetchRector (#5432)
2024-01-05 12:46:00 +00:00
Tomas Votruba
19374b3218 Updated Rector to commit 7654e2b720e0cfbefa663c009267a1f381661953
7654e2b720 Bump to phpstan 1.10.52 (#5431)
2024-01-05 10:41:41 +00:00
Tomas Votruba
9fc4d17470 Updated Rector to commit 0aecff4b07e3b70f792c6d5bec0fd103d0597de8
0aecff4b07 [dx] Remove extra phpstan-config job as already part of main phpstan run (#5430)
2024-01-05 10:33:26 +00:00
Tomas Votruba
87dbb8aa94 Updated Rector to commit 4480697a0acd8ee8fb3dd3f7fc4e6390d0d51d82
4480697a0a cs
2024-01-04 22:11:29 +00:00
Tomas Votruba
f8c73cea6c Updated Rector to commit a326b8504d37093f639245da0b283f588f954890
a326b8504d remove array spread from coding style, as often part of personal preference
2024-01-04 22:10:51 +00:00
Tomas Votruba
41a86add1d Updated Rector to commit b007a8bd11ea0451b50dbafbacd5450b295f6266
b007a8bd11 [Php83] Add implements interface support on AddOverrideAttributeToOverriddenMethodsRector (#5429)
2024-01-04 19:14:21 +00:00
Tomas Votruba
5457aea4e0 Updated Rector to commit 1f9829d2a3820f39fe0601b996c5cba71ffb42b0
1f9829d2a3 [Strict] Add StaticProperty supporton may be unitialized static property on DisallowedEmptyRuleFixerRector (#5428)
2024-01-04 15:49:28 +00:00
Tomas Votruba
da887b253b Updated Rector to commit f85e8c27b3932196d882c70b063f517a48b5aaac
f85e8c27b3 Decouple LongAndDependentComplexRectorRule to cognitive-complexity package (#5427)
2024-01-03 13:09:14 +00:00
Tomas Votruba
5c10ef9158 Updated Rector to commit 09c077e25801da58834be284a792c3987ea806ef
09c077e258 [TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector (#5355)
2024-01-03 07:52:06 +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
350042dba4 Updated Rector to commit 9144efc05cf4d084d4af69f4df0be9d7a66e5869
9144efc05c Keep called method in RemoveEmptyClassMethodRector (#5425)
2024-01-02 20:43:50 +00:00
Tomas Votruba
3a49fcd8d5 Updated Rector to commit 8724feefea91743e05006cb1329c5cd1675b5003
8724feefea Skip cond with side effect in RemoveDeadConditionAboveReturnRector (#5424)
2024-01-02 20:16:55 +00:00
Tomas Votruba
e37778b4f3 Updated Rector to commit 57292bc31d0a02fbbbedff455185096945fd1914
57292bc31d [Scoper] Remove symfony/deprecation-contracts from "replace" on composer.json (#5421)
2024-01-02 13:53:06 +00:00
Tomas Votruba
c888002735 Updated Rector to commit 4005683997ceadfff65d19328e4eb2d0b5b3bbae
4005683997 [Scoper] Include src/core_namespace_aliases.php on last after project autoload (#5420)
2024-01-02 13:36:58 +00:00
Tomas Votruba
615009f789 Updated Rector to commit fa1a96b7eaa5f178c5701c94999a9aa130cf6255
fa1a96b7ea [Scoped] Using rector/rector:dev-main on e2e scoped (#5419)
2024-01-02 12:53:42 +00:00
Tomas Votruba
35d4ae5ad9 Updated Rector to commit d886cffeded58fb4b5a55182f4b98b796545c18e
d886cffede [build] Try removing scope aliases
2024-01-02 02:50:51 +00:00
Tomas Votruba
0601eaa986 Updated Rector to commit cf0d54eb5996ded864208ee940fb794e7440ea6a
cf0d54eb59 fix Core namespace
2024-01-02 02:42:51 +00:00
Tomas Votruba
1c3ddfdb95 Updated Rector to commit 6971a20db5ea2560c8918e39c8f526563180a5a7
6971a20db5 [tests] Cleanup few obvious issue tests to make rest more robuts and useful (#5417)
2024-01-02 02:41:09 +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
3916887582 Updated Rector to commit 9f937086898498f37d71977895312cbdb7fdbc6a
9f93708689 [Strict] Handle may be unitialized property on DisallowedEmptyRuleFixerRector (#5409)
2024-01-01 13:26:19 +00:00
Tomas Votruba
aff2607559 Updated Rector to commit a64a34407038fab9ba3195d8314c1f550a7d1d40
a64a344070 [cleanup] Decouple changelog generator (#5412)
2024-01-01 13:26:04 +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
ac1177eb9c Updated Rector to commit f4257afb3c05217b13513c4708228a6a976bab88
f4257afb3c [CI] Remove phpstan for fixtures job as cumbersome to run (#5408)
2024-01-01 00:22:20 +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
4bfd1e7acf Updated Rector to commit 0d424e1b978cd70d0aafe6e095f19fb67adb8de3
0d424e1b97 [psr-4] Move tests to main namespace, as part of /src and /packages merge (#5406)
2023-12-31 23:42:36 +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
6e1ac30f0c Updated Rector to commit 0ba47067e827e46c7fc17b1a53cb4418080551d3
0ba47067e8 [config] Extract RectorConfigValidator and handle config validation there (#5404)
2023-12-31 19:54:42 +00:00
Tomas Votruba
6b98134b54 Updated Rector to commit 9c7842f036e9164616582ea6e8b2ce95f90426e4
9c7842f036 [ecs] tidy up config (#5403)
2023-12-31 19:44:21 +00:00
Tomas Votruba
67d86f3aa4 Updated Rector to commit fff370b2c0f029203b7c53b96e4a7b8e9217af76
fff370b2c0 [Php83] Handle dynamic host and port values on CombineHostPortLdapUriRector (#5401)
2023-12-31 12:20:56 +00:00
Tomas Votruba
b1b95d1c64 Updated Rector to commit e044d50e9b7b04c5ef7454044721dbf16b4b75f8
e044d50e9b [TypeDeclaration] optionally only add types for hard coded return values in `ReturnTypeFromStrictScalarReturnExprRector` (#5364)
2023-12-30 11:58:36 +00:00
Tomas Votruba
ae330c0d87 Updated Rector to commit e8684d461ed996055fb060592267fcdab258e367
e8684d461e Bump phpstan to 1.10.50 (#5399)
2023-12-29 18:31:19 +00:00
Tomas Votruba
37846880cd Updated Rector to commit f54a79b475d1eb73f536cbc07ee108b2dda07a01
f54a79b475 [Parallel] Fix missing --xdebug in WorkerCommand line on WorkerCommandLineFactory when --xdebug provided (#5398)
2023-12-28 12:01:32 +00:00
Tomas Votruba
38b33113ca Updated Rector to commit 109d734969100cf97bdc820e7c369c90e9e4016a
109d734969 [Php83] Add CombineHostPortLdapUriRector (#5397)
2023-12-27 22:04:09 +00:00
Tomas Votruba
5892f5adb9 Updated Rector to commit ad09d9c37e3e98eff856fcad7c355accad83f6b4
ad09d9c37e make use of autotagInterface() (#5396)
2023-12-26 18:33:36 +00:00
Tomas Votruba
ff860915a2 Updated Rector to commit 9cebe922f18a2fd07311eab528dd59a33ff17ba4
9cebe922f1 [DX] Add RectorConfig::autotagInterfaces() for automated tagging of instances (#5395)
2023-12-26 18:10:37 +00:00
Tomas Votruba
95ed962a15 Updated Rector to commit 6646d23fe0cea4b4a871ca1931e33f0cb2a574c7
6646d23fe0 [CodingStyle] Add RemoveUselessAliasInUseStatementRector (#5394)
2023-12-26 17:40:03 +00:00
Tomas Votruba
a7607e481d Updated Rector to commit 6bff51172cf396da8abc062d96f0406fd86ef349
6bff51172c [e2e] Add e2e for polyfill in composer require provided (#5392)
2023-12-25 03:17:16 +00:00
Tomas Votruba
dc7f07a258 Updated Rector to commit 70eace01e543d91beabacd6fbc062b871090a6ac
70eace01e5 [Polyfill] Add test polyfill not configured on php 7.4 env (#5391)
2023-12-25 03:08:53 +00:00
Tomas Votruba
d29c258132 Updated Rector to commit 69983e907a570f9b4f708be81e8cf1eae8a7f1d0
69983e907a [Php] Fix filter cache on PolyfillPackagesProvider (#5390)
2023-12-25 03:00:38 +00:00
Tomas Votruba
3f2b3edab8 Updated Rector to commit 6ebab94b971a930457c8e217dcb699c671ad617b
6ebab94b97 Add related polyfill interface to other PHP 8.0/7.3 rules (#5389)
2023-12-25 00:55:45 +00:00
Tomas Votruba
8775d2e083 Updated Rector to commit ebb2d2df55887c25f74af39b400194039dff78d4
ebb2d2df55 [DX] Add "Related polyfill" feature to upgrade based on used symfony/polyfill-* packages (#5388)
2023-12-24 12:52:27 +00:00
Tomas Votruba
462b60a70a Updated Rector to commit c6ca4f1f5ccdf73d9aa0f8f441267725e07aee67
c6ca4f1f5c [Performance][TypeDeclaration] Avoid using AstResolver on class is on same file on AllAssignNodePropertyTypeInferer (#5387)
2023-12-24 03:11:42 +00:00
Tomas Votruba
06a8e6394a Updated Rector to commit 012e8bb2ed77516c792e3fb9c777066c3776abcc
012e8bb2ed Skip non-final class method with no content in AddVoidReturnTypeWhereNoReturnRector (#5386)
2023-12-24 01:21:59 +00:00
Tomas Votruba
f9f96d6bb9 Updated Rector to commit 00b442f2d79f1536e9dc59c2fa7ff541a0cba1e8
00b442f2d7 Fix variable to property fetch update in ClassPropertyAssignToConstructorPromotionRector (#5385)
2023-12-24 00:51:27 +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
f77e8b8450 Updated Rector to commit 16f8d19db32108740794a68a011c78328bb69aed
16f8d19db3 Fix StrictArrayParamDimFetchRector for string access (#5383)
2023-12-23 20:44:18 +00:00
Tomas Votruba
80dad1d8c8 Updated Rector to commit a644d0d4a2f1e457f77cf8e384fd32b78b5ff388
a644d0d4a2 [Arguments] Allow no default value on ArgumentAdderRector (#5382)
2023-12-23 19:44:26 +00:00
Tomas Votruba
a4aba10ad7 Updated Rector to commit 3cef752763be750ea221c5c5eb1681d27398a3d5
3cef752763 Skip classes without final and exception as possibly invoke child implement in AddVoidReturnTypeWhereNoReturnRector (#5381)
2023-12-23 15:28:34 +00:00
Tomas Votruba
78b306c557 Updated Rector to commit 5259090faea9e744c79da1115ad299d31b649bb1
5259090fae wording
2023-12-23 15:04:06 +00:00
Tomas Votruba
f65671090e Updated Rector to commit ae97b716490cd94d2d7ba5783ab5f5f7e19ad535
ae97b71649 tidy up (#5380)
2023-12-23 14:54:24 +00:00
Tomas Votruba
94baa5fede Updated Rector to commit 8df2120b3f546dd7f0eb89bf199a042dfc9283e7
8df2120b3f Skip void without final keyword in ReturnNeverTypeRector as could be implemented with more precise children (#5379)
2023-12-23 14:51:47 +00:00
Tomas Votruba
0ee99bfbc9 Updated Rector to commit 53ba155ab03ce7717ecef42b311880b314a40fbc
53ba155ab0 [NodeAnalyzer] Use existing VariadicFunctionLikeDetector on VariadicAnalyzer (#5378)
2023-12-23 11:33:51 +00:00
Tomas Votruba
daa774618b Updated Rector to commit 941735ce81d698e7b4c32d71b43595033236226f
941735ce81 [Performance][AstResolver] Avoid parse file on NativeFunctionReflection on AstResolver::resolveFunctionFromFunctionReflection() (#5377)
2023-12-23 10:46:06 +00:00
Tomas Votruba
1ce9a4da5a Updated Rector to commit c2c6558cde8138d5509b306bd499e013ac5da2e9
c2c6558cde [TypeDeclaration] Allow add void return type on magic __invoke() method on AddVoidReturnTypeWhereNoReturnRector (#5376)
2023-12-22 17:39:40 +00:00
Tomas Votruba
949ab12adb Updated Rector to commit 7ca4de097ed6b2f0f2b20a8f2b55ea2121120173
7ca4de097e [DeadCode] Skip nullable array on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5375)
2023-12-21 15:22:15 +00:00
Tomas Votruba
f8011a76d3 Rector 0.18.13 2023-12-20 16:08:01 +00:00
Tomas Votruba
40ac5bade5 Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
4283beff2f [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
2023-12-18 12:32:23 +00:00
Tomas Votruba
10fd8e5374 Updated Rector to commit 02a30d483fe28abc9315a7e6bf809614750c95ab
02a30d483f [Php55] Handle crash after exit() on GetCalledClassToSelfClassRector (#5372)
2023-12-18 05:38:03 +00:00
Tomas Votruba
5f40a31427 Updated Rector to commit affdec96db31156ab2b05a5801f980e284e291a5
affdec96db [Testing] Remove unnecessary set Parameter Source on TestingParser (#5371)
2023-12-17 15:33:43 +00:00
Tomas Votruba
335a3861f8 Updated Rector to commit 63201f76725831988f1484476f6f84e0976a5742
63201f7672 [CodeQuality] Skip Superglobals variable on SimplifyEmptyCheckOnEmptyArrayRector (#5369)
2023-12-17 09:24:20 +00:00
Tomas Votruba
291e258902 Updated Rector to commit 54491a53f081fd8785269513b1650a524a9077f1
54491a53f0 [BetterphpDocparser] Remove new PrivatesAccessor() on promotion property on BetterPhpDocParser (#5368)
2023-12-17 07:29:57 +00:00
Tomas Votruba
785ac22e33 Updated Rector to commit 89d2c9c4eb2bfddc226136899b1fdb0a99d19a8a
89d2c9c4eb [Php72] Remove usage on PrivatesAccessor on AnonymousFunctionFactory (#5367)
2023-12-17 06:37:00 +00:00
Tomas Votruba
aba5aec25d Updated Rector to commit aa52c4ecedb83773b12c4d3b2906ba36601057ba
aa52c4eced [Reflection] Remove usage on PrivatesAccessor on ClassReflectionAnalyzer (#5366)
2023-12-17 06:07:34 +00:00
Tomas Votruba
d525e926d3 Updated Rector to commit 1dcebfe29713124a43504c9a4bac322fa2f41f59
1dcebfe297 [automated] Apply Coding Standard (#5365)
2023-12-17 00:30:16 +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
bd56d13367 Updated Rector to commit 39cce5ccb84ce4ac40eeae113db339a961db9489
39cce5ccb8 [ECS] Skip SelfAccessorFixer on *Rector.php to skip example code for using using self:: (#5363)
2023-12-16 15:42:57 +00:00
Tomas Votruba
7bf2453858 Updated Rector to commit 227e97477c44de40c165bba4b72e48dd954151d5
227e97477c [Transform] Do not create a new node if the existing node is already the correct one on AttributeKeyToClassConstFetchRector (#5328)
2023-12-16 02:55:33 +00:00
Tomas Votruba
90b260693b Updated Rector to commit 589bda6cd1eb7bc6cdc68313facc02cae41ba628
589bda6cd1 [Naming] Skip `$this` in RenameForeachValueVariableToMatchExprVariableRector (#5360)
2023-12-15 10:14:01 +00:00
Tomas Votruba
7c223ab41f Updated Rector to commit 5a1512b4c0939c1b8f9ab7a1c0eb40029acb1537
5a1512b4c0 [TypeDeclaration] Allow return static from under function on ReturnTypeFromStrictTypedCallRector (#5358)
2023-12-13 14:10:43 +00:00
Tomas Votruba
b571b1cd51 Updated Rector to commit 0817980433aaf92d2b71e4d9804ec1988afbf908
0817980433 [TypeDeclaration] Return new static from different object on ReturnTypeFromStrictTypedCallRector (#5357)
2023-12-13 13:01:03 +00:00
Tomas Votruba
e3e6cff9bd Updated Rector to commit fea5d6c0034746e050851887a7900bf94a22069d
fea5d6c003 [TypeDeclaration] Skip casted to (array) on StrictArrayParamDimFetchRector (#5356)
2023-12-12 15:47:12 +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
d2dde21bd9 Updated Rector to commit 68c42e7e843bfb9fde2b6516bb1bb76648d67045
68c42e7e84 [DeadCode] Skip Remove @return/@param null functionality in case of sub type (#5350)
2023-12-10 16:34:14 +00:00
Tomas Votruba
fffe49e4aa Updated Rector to commit 287eab3a7040f8d42fa10701d5fbfc2998fdcc25
287eab3a70 [DeadCode] Add RemoveNullTagValueNodeRector (#5352)
2023-12-10 16:32:52 +00:00
Tomas Votruba
e216058787 Updated Rector to commit f8c3a2e313d5eee15c2aca53177ccf377042a65c
f8c3a2e313 Remove json throw on error rule from PHP 7.3 set, as changed behavior and must be applied on purpose (#5349)
2023-12-10 13:35:43 +00:00
Tomas Votruba
bb15f9c3c4 Updated Rector to commit e400e37e5fe1d329419874143c16d53242cf5b55
e400e37e5f [DeadCode] Remove null as never used param type in RemoveUselessParamTagRector (#5348)
2023-12-10 12:52:21 +00:00
Tomas Votruba
5c2f93e7b7 Updated Rector to commit f7b9dd9035931da5a040f5c714c79c32c424b677
f7b9dd9035 Update rector.php of skip() to allow file name has word: "Expected" (#5347)
2023-12-10 02:05:30 +00:00
Tomas Votruba
34915563d5 Updated Rector to commit bc69455d8a05c1325d64dac545931594ca1fe4aa
bc69455d8a [automated] Apply Coding Standard (#5346)
2023-12-10 00:29:46 +00:00
Tomas Votruba
976e6eb341 Updated Rector to commit ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f
ccbee6ff09 [automated] Re-Generate Nodes/Rectors Documentation (#5345)
2023-12-10 00:29:28 +00:00
Tomas Votruba
0125f4dfcf Updated Rector to commit 99dbc0d8b7ca27e803c78657979f574476208125
99dbc0d8b7 [Experiment][TypeDeclaration] Allow change abstract class methods with body on ReturnType*Rector (#5344)
2023-12-09 17:15:42 +00:00
Tomas Votruba
ba2d636bcd Updated Rector to commit bc544cf6f72f9296403ae906a3be83093ba08076
bc544cf6f7 [TypeDeclaration] Skip has child return different type on ReturnNeverTypeRector (#5343)
2023-12-09 14:31:59 +00:00
Tomas Votruba
5fbad6d865 Updated Rector to commit 6a63c6376124c9604097d85aa4cc77c190bdacd2
6a63c63761 [PHP 7.4] Skip typed properties in the set, as standalone set now available (#5342)
2023-12-08 16:11:44 +00:00
Tomas Votruba
b4235c46ba Updated Rector to commit f2a8542f3e7538a2c1aafdfd93a773e4065adcff
f2a8542f3e Typo fix (#5341)
2023-12-08 14:45:41 +00:00
Tomas Votruba
e5e3c815d5 Updated Rector to commit 14f11280c85a2776b211dac001f0accd4295c587
14f11280c8 [Naming] Skip DateTimeImmutable on RenamePropertyToMatchTypeRector (#5340)
2023-12-08 14:41:39 +00:00
Tomas Votruba
548d5109ed Updated Rector to commit 0a2dc3d52b679bad1b07849d951748a8faad7f9a
0a2dc3d52b Fix array type if property is used in TypedPropertyFromStrictConstructorRector (#5339)
2023-12-08 13:59:08 +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
9e3e9b62ed Updated Rector to commit 9e39db80cf2a763ae6006b3747feb69d82ade52d
9e39db80cf [DeadCode] Skip has parent class with __call() magic method on RemoveParentCallWithoutParentRector (#5336)
2023-12-07 04:38:08 +00:00
Tomas Votruba
e7bdaa4244 Updated Rector to commit b6f53b95e8a0ced2dd8197f9c46640ee9010a63b
b6f53b95e8 add mock object test fixture (#5335)
2023-12-06 23:05:01 +00:00
Tomas Votruba
fb06a0e1f2 Updated Rector to commit 79c57f019e1c94c72ef79cb6cbdda864bdc2e1c1
79c57f019e [TypeDeclaration] Handle assign $this on TypedPropertyFromAssignsRector (#5333)
2023-12-06 14:25:02 +00:00
Tomas Votruba
58923caaf6 Updated Rector to commit 043d43cd0347b4c2a73e896674a1f22ab1ce6d62
043d43cd03 [DeadCode] Remove unused @return mixed on RemoveUselessReturnTagRector (#5332)
2023-12-06 13:28:15 +00:00
Tomas Votruba
942be869a9 Updated Rector to commit 1daab3c53f4a09669d2d915f7e245e984ace908d
1daab3c53f [DeadCode] Add Function_ support on RemoveUselessParamTagRector (#5331)
2023-12-06 10:48:40 +00:00
Tomas Votruba
413475184c Updated Rector to commit a92fade7d0fbfcee3fb3e4f0ff5620e281de8ce0
a92fade7d0 [TypeDeclaration] Handle DateTimeInterface from use statement on MergeDateTimePropertyTypeDeclarationRector (#5330)
2023-12-05 21:28:49 +00:00
Tomas Votruba
e86b6d37a6 Updated Rector to commit d22741edaf63d488b39f7754353b0ea8cc454836
d22741edaf [TypeDeclaration] Fix missing change type to DateTimeInterface on MergeDateTimePropertyTypeDeclarationRector (#5329)
2023-12-05 21:03:16 +00:00
Tomas Votruba
13aada9fdc Updated Rector to commit b1a50d4c785b9fc1498bcd843e58635350e10114
b1a50d4c78 [TypeDeclaration] Add MergeDateTimePropertyTypeDeclarationRector (#5327)
2023-12-05 14:01:18 +00:00
Tomas Votruba
2f9139b981 Updated Rector to commit 1b1afebd878e60ee25af5fe1bb9ef3f95fe47d33
1b1afebd87 [Php83] Fix const from applying incorrect types (#5326)
2023-12-05 12:35:18 +00:00
Tomas Votruba
374ed77ef0 Updated Rector to commit 4531aeb0cd7ef47a75afbee72237eef45b4cc266
4531aeb0cd [DeadCode] Add Function_ support on RemoveUselessReturnTagRector (#5325)
2023-12-05 09:55:15 +00:00
Tomas Votruba
1095b54b14 Updated Rector to commit 005ccc330c3bb37f9faf0f5e2c319036f2d055b8
005ccc330c Rectify (#5324)
2023-12-04 14:56:20 +00:00
Tomas Votruba
1754c2c66a Updated Rector to commit 526f4cd09c06842987e46d661b6ad87a8da723a7
526f4cd09c Remove return type in case of never in RemoveUselessReturnTagRector (#5323)
2023-12-04 14:51:16 +00:00
Tomas Votruba
ed8d5352a3 Rector 0.18.12 2023-12-04 08:47:30 +00:00
Tomas Votruba
6cba20638d Updated Rector to commit 80cf5781c3bf477076753e2a0c2890ae0ecbb4c1
80cf5781c3 [DeadCode] Remove useless nullable @return doc on RemoveUselessReturnTagRector (#5321)
2023-12-04 05:22:37 +00:00
Tomas Votruba
ee373e619a Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2
41729c25cb [DeadCode] Skip @return never with void on  RemoveUselessReturnTagRector (#5320)
2023-12-04 01:56:17 +00:00
Tomas Votruba
d9834a6d69 Updated Rector to commit 8e6d46a58fff8e6bd5276b9ae473bfb91460b487
8e6d46a58f [Instanceof] Fix combination of dead instance and compare (#5319)
2023-12-03 20:12:56 +00:00
Tomas Votruba
ab4ff53673 Updated Rector to commit 026398c9e1078cb3ac5cac41767b620872166859
026398c9e1 Remove return type in case of void in RemoveUselessReturnTagRector (#5318)
2023-12-03 19:10:14 +00:00
Tomas Votruba
07dd432ed3 Updated Rector to commit b8e6818ed04f3aa07218569509bd819db3649820
b8e6818ed0 tidy
2023-12-03 17:44:01 +00:00
Tomas Votruba
7124cd0a2c Updated Rector to commit 055ab62e3fa14a1aaccd2a5e7f2a9fd354fbd600
055ab62e3f Fix annotation to attribute parsing string (#5317)
2023-12-03 17:40:26 +00:00
Tomas Votruba
e7fa7d1aa0 Updated Rector to commit 18617f9880d098bceae210512c190c8d44aa7811
18617f9880 Remove isPositiveInteger() check for third argument to strpos() (#5257)
2023-12-03 16:56:59 +00:00
Tomas Votruba
9d01b5b403 Updated Rector to commit d9c5d8f09bfd68e7496c07c23ddac03447cfbb32
d9c5d8f09b [Strict] Allow check '0' empty zero on BooleanInTernaryOperatorRuleFixerRector on string type (#5297)
2023-12-03 15:49:51 +00:00
Tomas Votruba
cd89d88b46 Updated Rector to commit e3f909cf030971b542c9c508298c729abb60eefe
e3f909cf03 cs
2023-12-03 15:01:51 +00:00
Tomas Votruba
f9c1f58ffc Updated Rector to commit 52b665436c0f2161619b265caa3f2a65be5604dc
52b665436c [PHP83] Implements a rule to add types to class constants (#5290)
2023-12-03 14:59:47 +00:00
Tomas Votruba
1bcbe800e1 Updated Rector to commit ea5b331e7ea67a03b4c3f162c566a8dbfd74d55d
ea5b331e7e [CodeQuality] Add RemoveUselessIsObjectCheckRector (#5316)
2023-12-03 12:25:03 +00:00
Tomas Votruba
3ef06bdaf4 Updated Rector to commit be924be778eeceffa6105ab330ea7eb366ebb44b
be924be778 [TypeDeclaration] Add If else assign support on TypedPropertyFromAssignsRector (#5314)
2023-12-03 11:18:10 +00:00
Tomas Votruba
2a8dd1b78f Updated Rector to commit 368075b95cf10dff9d0313abbe94d3c6d3b28f67
368075b95c [PHP 7.0] Skip mt_rand() replacement as not valuable (#5315)
2023-12-03 10:51:00 +00:00
Tomas Votruba
0e71ab1566 Updated Rector to commit 383258215298bac5f8c2d092373b58f74c6792db
3832582152 cs
2023-12-03 10:04:57 +00:00
Tomas Votruba
0668f1e99c Updated Rector to commit ae081e11dae915e05a58cbd9d2a995f3ac868254
ae081e11da [TypeDeclaration] Keep constant false return type from strict native call (#5223)
2023-12-03 09:56:22 +00:00
Tomas Votruba
77ce00c02a Updated Rector to commit 483aca176cd25b478a99fe213a98ec5bd348bd13
483aca176c [Php80] Skip PDO::query() on AddParamBasedOnParentClassMethodRector (#5313)
2023-12-03 09:17:50 +00:00
Tomas Votruba
ec76be2243 Updated Rector to commit eeadb4936577a998b32e13c7ec7fc7bbb1d8722c
eeadb49365 [automated] Apply Coding Standard (#5312)
2023-12-03 00:29:06 +00:00
Tomas Votruba
93efaa2dcc Updated Rector to commit 3b84030d093b9896615f640ad0e361c923af8953
3b84030d09 [TypeDeclaration] Skip return void in abstract empty class in AddVoidReturnTypeWhereNoReturnRector (#5311)
2023-12-02 19:56:06 +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
b698053254 Updated Rector to commit 5c8fa12ec90e4d4b55fd05f48509c538c243482d
5c8fa12ec9 [Doc] Typo fix on sample code documentation on SimplifyForeachToCoalescingRector (#5308)
2023-12-02 05:05:22 +00:00
Tomas Votruba
cb8a63ca31 Updated Rector to commit 71c22e20d9a3b2ba187515711b13fca40b595d93
71c22e20d9 [CodeQuality] Skip with else on SimplifyForeachToCoalescingRector (#5307)
2023-12-02 04:51:32 +00:00
Tomas Votruba
971392df51 Updated Rector to commit 17397d5aecee91cdb525a1e1b012718a101cf4be
17397d5aec [PostRector] Allow remove end with name check backslash on UnusedImportRemovingPostRector (#5306)
2023-12-02 04:29:10 +00:00
Tomas Votruba
14ad1a6981 Updated Rector to commit 7badba687c3dfb247726757c5589629c45fe3ca2
7badba687c [PostRector] Allow remove unused use sub namespace on UnusedImportRemovingPostRector (#5299)
2023-12-02 03:47:46 +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
a1e301f6e8 Updated Rector to commit 6c8197667db0cb463eeda93b14b4c6f36e4aab05
6c8197667d [Scoped] Exclude symfony/console/Debug/CliRequest.php from parallel-lint PHP 7.2 syntax check (#5304)
2023-11-30 18:02:55 +00:00
Tomas Votruba
35f86a2fad Updated Rector to commit 91f9f3057c2d51018228ed89273a76da991d3f45
91f9f3057c Use symfony/console ~6.3.9 to fix downgrade build (#5302)
2023-11-30 10:06:33 +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
84b97fe47c Updated Rector to commit c3840325600449b562691e34612279dcd4316043
c384032560 [Strict] Fix DisallowedEmptyRuleFixerRector empty() allow string '0' check (#5296)
2023-11-28 17:41:50 +00:00
Tomas Votruba
54e7a3a895 Updated Rector to commit 765b63696eb3bc240e92f10b00169b146c99463a
765b63696e [TypeDeclaration][Performance] Check typed param already early on ParamTypeByMethodCallTypeRector (#5295)
2023-11-28 11:12:27 +00:00
Tomas Votruba
7a2348073c Updated Rector to commit 118fbde3b1ccc3685c55cd2704bc971d2d49ef41
118fbde3b1 [TypeDeclaration] Remove ParamTypeFromStrictTypedPropertyRector as seems similar feature with AddParamTypeFromPropertyTypeRector (#5293)
2023-11-28 10:10:36 +00:00
Tomas Votruba
198f3d0446 Updated Rector to commit 4a2b4a63878dabbb02eeb9fc73587e9b57ad0bdf
4a2b4a6387 [Naming] Skip singularize "cms" on RenameForeachValueVariableToMatchExprVariableRector (#5294)
2023-11-28 04:43:10 +00:00
Tomas Votruba
3aaf5b74fb Updated Rector to commit b5f434b53c4c6fceb88c19d4656e4f11c6092f3c
b5f434b53c [CodeQuality] Make CommonNotEqualRector skip if not <> (#5292)
2023-11-27 16:03:30 +00:00
Tomas Votruba
8486081737 Updated Rector to commit e66754adeaad2e9cb67cf1784a6255285dfc542d
e66754adea [TypeDeclaration] Skip iterable already there in AddReturnTypeDeclarationFromYieldsRector (#5291)
2023-11-27 13:46:01 +00:00