11584 Commits

Author SHA1 Message Date
TomasVotruba
c98e180be9 skip static error 2021-04-15 23:41:07 +02:00
TomasVotruba
420a2a8148 typo 2021-04-15 23:40:47 +02:00
TomasVotruba
5f66258231 typo 2021-04-15 23:40:10 +02:00
TomasVotruba
cb22e6386d fixes 2021-04-15 23:39:54 +02:00
Tomas Votruba
268b32ff7e
[DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector (#6151)
* [DeadCode] Remove duplicated RemoveUnusedPrivateConstantRector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 23:38:44 +02:00
TomasVotruba
d3295a7d1e fix incorrect varialbe name 2021-04-15 23:07:07 +02:00
TomasVotruba
8976681b20 remove StaticNodeInstanceOf 2021-04-15 22:45:10 +02:00
Michal Lulco
be2a54e0b9
Collect method call renames for future usage (#6149) 2021-04-15 22:44:58 +02:00
Rob Landers
27f3544e8e
Fix nullsafe transpile (#6101)
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-04-15 19:16:27 +00:00
Tomas Votruba
b8071fb7bc
Make use of inline parser over extreme node construction (#6145)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-15 17:34:49 +00:00
Abdul Malik Ikhsan
a7234e7ac3
[Php73] Refactor JsonThrowOnErrorRector: change 2nd parameter of json_decode to null and skip on json_last_error, json_last_error_msg (#6143) 2021-04-15 17:56:21 +02:00
Abdul Malik Ikhsan
3d88aefe05
[Php73] Skip RegexDashEscapeRector on 3 backslash with next to be escaped (#6144) 2021-04-15 17:55:53 +02:00
TomasVotruba
e3e5b5869c fix return 2021-04-15 10:49:24 +02:00
Tomas Votruba
919849dc66
[Downgrade 72] Add DowngradeStreamIsattyRector (#6140) 2021-04-14 22:30:57 +00:00
TomasVotruba
799ff36a71 [CI] skip linting polyfill 2021-04-14 20:39:12 +02:00
Tomas Votruba
1e1c6eebd9
[prefixed] No polyfill on prefixed version (#6139) 2021-04-14 20:23:49 +02:00
Abdul Malik Ikhsan
bd2c7aee9f
[DowngradePhp70] Add DowngradeAnonymousClassRector (#6122)
* [DowngradePhp70] [WIP] Add DowngradeAnonymousClassRector

* typo

* add test

* check is anonymous

* adding new Anonymous class before class

* anonymous class must have New_ parent

* getting args

* without param

* with args fixture

* adding with args

* debug

* with args

* getting args from next attribute

* try move to New_

* skip not anonymous

* try using New_

* [ci-review] Rector Rectify

* it works with New_ node

* with addNodeBeforeNode()

* class exists fixture

* adding increment class if exists

* implemented increment class name for inside class

* handle no namespace

* in function

* in function no namespace

* works

* register to downgrade php70 set

* [ci-review] Rector Rectify

* typo fix

* phpstan

* [ci-review] Rector Rectify

* add handle in closure

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 19:55:20 +02:00
Tomas Votruba
219b45c096
[Downgrade 7.3] Add DowngradeArrayKeyFirstLastRector (#6137)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 16:08:07 +00:00
Tomas Votruba
a07e49c43b
bump Symplify packages (#6134) 2021-04-14 14:29:15 +00:00
Tomas Votruba
8f256fa281
[DeadCode] Fix RemoveUnusedVariableAssignRector for variable removal (#6133) 2021-04-14 13:02:16 +00:00
Tomas Votruba
0aa4e9dcad
Extract ErrorFactory (#6132)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 12:01:03 +00:00
Tomas Votruba
9c147eb846
make use of file rector errors (#6131) 0.10.6 2021-04-14 04:35:28 +02:00
TomasVotruba
c81b77dced fix skipped refactoring file update 2021-04-14 04:16:55 +02:00
Tomas Votruba
1e24618a9e
File reports (#6130) 2021-04-14 02:15:10 +00:00
Tomas Votruba
b03fa60c52
Fix empty docblocks (#6128)
* working prototype for nested arrays

* add data provider
0.10.5
2021-04-13 20:58:34 +02:00
Tomas Votruba
5bde10c181
Various doc parser fixes (#6125) 2021-04-13 18:51:41 +00:00
Michal Lulco
22d35689bf
[League event] Dispatch only strings to anonymous class (#6120)
* [League event] Fix: dispatch only strings to anonymous class

* [League event] Dispatch only strings to anonymous class

* Fixed phpstan
2021-04-13 19:14:34 +02:00
Tomas Votruba
a0656b27b9
Const tweaks (#6124) 2021-04-13 16:01:31 +00:00
Tomas Votruba
5da415ba3a
Post file cleanup (#6121) 2021-04-13 08:14:48 +00:00
Tomas Votruba
8b402bfe02
Make use of File object instead of passing around provider of file info, tokens, stmts etc. (#6110)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-13 00:12:48 +00:00
Tomas Votruba
b0dc20a462
make ComposerFileProcessor run on non-root paths of composer.json (#6111) 2021-04-12 20:47:56 +00:00
Michal Lulco
c2da41286f
Fix: use content from File not from SmartFileInfo (#6117) 2021-04-12 22:10:53 +02:00
Tomas Votruba
5dcedbd825
Remove isOnClassMethodCall() (#6116) 2021-04-12 20:04:30 +00:00
Abdul Malik Ikhsan
620309c0d7
[CodeQuality] Avoid double negation on UnnecessaryTernaryExpressionRector (#6115)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 22:02:23 +02:00
TomasVotruba
69e9da22d1 update Rector 0.9 upgrade set 2021-04-12 21:23:25 +02:00
Tomas Votruba
ad36b21383
Shorten output rule (#6114) 2021-04-12 21:16:36 +02:00
Tomas Votruba
37d5978025
Standardize added file testing + remove doTestExtraFile() from AbstractRectorTestCase (#6113) 2021-04-12 19:00:57 +00:00
Abdul Malik Ikhsan
8b230f4ebb
[Util] Remove unused method PhpVersionFactory::createStringVersion() (#6112) 2021-04-12 20:35:58 +02:00
Abdul Malik Ikhsan
4d4fb3611f
[DowngradePhp70] Add DowngradeStrictTypeDeclarationRector (#6107)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 17:28:54 +02:00
Tomas Votruba
ad7af917e2
Improve assert added and moved nodes (#6106) 2021-04-12 13:24:37 +00:00
Tomas Votruba
06f85e4a68
Refactor file processors towards universal collector (#6085)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-12 10:34:04 +00:00
Abdul Malik Ikhsan
faca7e2763
[DeadCode] Skip RemoveUnusedVariableAssignRector on used in next compact function (#6103)
Co-authored-by: repat <repat@repat.de>
2021-04-12 11:44:33 +02:00
Tomas Votruba
1e4a0745a1
Remove removed nodes (#6099)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-11 11:14:46 +00:00
Tomas Votruba
809d617708
Refactor OptionalParametersAfterRequiredRector to remove dependency from NodeRepository (#6098) 2021-04-11 10:27:20 +00:00
Tomas Votruba
081da74716
cleanup phpstan (#6096) 2021-04-10 23:47:54 +00:00
Tomas Votruba
b121d8e10a
Remove mapToDocString() and use describe() instead (#6095) 2021-04-10 23:28:08 +00:00
TomasVotruba
c4870c4a8d cleanup 2021-04-10 22:21:54 +02:00
Tomas Votruba
8b62025ce0
Cleanup composer update run (#6094)
* cleanup compoesr update run

* rename provideConfigFile() to provideConfigFilePath()

* merge AbstractComposerRectorTestCase to AbstractRectorTestCase

* rename ComposerProcessorNonPhp to ComposerFileProcessor
2021-04-10 22:12:50 +02:00
Tomas Votruba
417e819e40
cleanup (#6093) 2021-04-10 19:29:43 +00:00
Tomas Votruba
79621dbb99
Flip @see to @changelog links (#6092) 2021-04-10 18:47:17 +00:00