11696 Commits

Author SHA1 Message Date
Sebastian Schreiber
255b1fcbf7
[TASK] Add template type option for init command (#6233) 2021-04-25 21:43:59 +02:00
Tomas Votruba
7b1680875c
Merge ComposerModifier to ComposerFileProcessor (#6241) 2021-04-25 20:31:14 +02:00
TomasVotruba
846237e20b phpunit: run defect first 2021-04-25 15:46:45 +02:00
github-actions[bot]
08aab90348
[automated] Re-Generate Nodes/Rectors Documentation (#6236)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-04-25 11:44:34 +02:00
Tomas Votruba
764c311565
[docs] add auto imports docs (#6240) 2021-04-25 11:43:24 +02:00
Tomas Votruba
414a656ab9
Fix AUTOLOAD_PATHS and BOOTSTRAP_FILES in tests (#6239) 2021-04-25 09:23:15 +00:00
Tomas Votruba
31c06b2fcb
[docs] add Static Reflection and Autoload (#6238) 2021-04-25 11:04:04 +02:00
Abdul Malik Ikhsan
0ac5412aa0
[Php80] Add default case when variable initialized on ChangeSwitchToMatchRector (#6230)
* Add failing test fixture for ChangeSwitchToMatchRector

# Failing Test for ChangeSwitchToMatchRector

Based on https://getrector.org/demo/f7f2ba48-3c19-4fdb-bc0a-e956e037eefd

It's important to add the default case to prevent this error when passing another code:
```
Fatal error: Uncaught UnhandledMatchError: Unhandled match value of type int
```

https://3v4l.org/E64Um

* Closes #6216

* phpstan

* phpstan

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:07:36 +02:00
Abdul Malik Ikhsan
774ac29000
[Php80] Skip RemoveUnusedVariableInCatchRector when variable used next catch (#6231)
* Add failing test fixture for RemoveUnusedVariableInCatchRector

# Failing Test for RemoveUnusedVariableInCatchRector

Based on https://getrector.org/demo/194e0c75-cb30-4f02-a0de-70d32fbe152c

* Closes #6213

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:06:07 +02:00
TomasVotruba
dd0c1038da skip examples in linter 2021-04-24 16:32:37 +02:00
Tomas Votruba
3f3811ab21
add dump_node() helper functoin (#6229) 2021-04-24 14:22:36 +00:00
Tomas Votruba
ba2d96c583
[composer] remove uuid package (#6228) 2021-04-24 16:04:10 +02:00
TomasVotruba
ee9ed46d43 composer: bump rector split package 0.10.11 2021-04-24 14:32:02 +02:00
TomasVotruba
3a7f26197a [scoped] autoload prefixed FileInfo 2021-04-24 14:30:51 +02:00
TomasVotruba
b3aa020beb [CI] skip PHP 7.0 build completely 2021-04-24 14:07:16 +02:00
TomasVotruba
8cb3858245 skip PHP 7.0 on tags 2021-04-24 13:57:13 +02:00
TomasVotruba
55aba2ca97 remove unused files 0.10.10 2021-04-24 13:32:11 +02:00
TomasVotruba
9b1558e701 [prefixed] add bootstrap.php to autoload Rector-prefixed in tests + add simple rule test 2021-04-24 13:21:42 +02:00
TomasVotruba
1022edb763 fix parent class 2021-04-24 09:44:03 +02:00
TomasVotruba
f91ce82066 add one missing in whole family 2021-04-24 09:35:30 +02:00
Tomas Votruba
9e869098ff
[Downgrade PHP 7.2] Fix 2+ param position (#6227) 2021-04-24 07:13:59 +00:00
Abdul Malik Ikhsan
c51c1da262
[DeadCode] Use dependency injection for ConditionSearcher in RemoveUnusedVariableAssignRector (#6226) 2021-04-24 00:59:36 +00:00
Tomas Votruba
aa2c142038
[Downgrade PHP 7.2] Cover nullable param in DowngradeParameterTypeWideningRector (#6225) 2021-04-24 00:53:17 +00:00
TomasVotruba
cf58d68f6a [CI] disable 70 build as it needs more work 2021-04-24 02:33:08 +02:00
TomasVotruba
49c4caf870 fix nested path 2021-04-24 02:25:08 +02:00
Tomas Votruba
fa45c4f9d1
[Downgrade PHP 7.2] Make DowngradeParameterTypeWideningRector work for interface (#6224) 2021-04-24 01:14:40 +02:00
TomasVotruba
fd159b35a5 skip liniting resource 2021-04-23 23:11:58 +02:00
Tomas Votruba
a32055f317
[scoped] Build PHP 7.0 repo to own repository to avoid breaking prefixed rector (#6223)
* [scoped] build PHP 7.0 repo to own repository to avoid breaking prefixed rector

* lint with PHP 7.0 files
2021-04-23 23:05:26 +02:00
Tomas Votruba
793dd3fd2e
[Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector (#6222)
* [Downgrade PHP 7.1] Fix empty item on SymmetricArrayDestructuringToListRector

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 22:28:00 +02:00
Tomas Votruba
1a060aadac
Fix php70 on prefixed - skip nullable till phpstan is downgraded (#6221) 2021-04-23 21:34:50 +02:00
Tomas Votruba
f9dc93cb1a
Fix WrapEncapsedVariableInCurlyBracesRector reporting (#6220)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-23 19:32:59 +00:00
Tomas Votruba
a3ec81fe1f
Add setter/getter factory (#6219) 2021-04-23 18:14:51 +00:00
Tomas Votruba
ab6580de35
[Downgrade PHP 7.2] Make covariant change local methods only (#6218) 2021-04-23 17:54:30 +00:00
Tomas Votruba
e425c11d8d
[Downgrade PHP 7.2] Improve covariant (#6207) 2021-04-23 09:03:45 +00:00
Abdul Malik Ikhsan
91377902b2
[DowngradePhp70] Add DowngradeNullCoalesceRector (#6208) 2021-04-23 09:21:57 +02:00
TomasVotruba
86c3069f36 [Downgrade 7.2] Add string has/get interface 2021-04-23 01:00:33 +02:00
TomasVotruba
146a24ea7e [prefixed] re-order paths 2021-04-23 00:38:37 +02:00
TomasVotruba
d5efa10ed0 remove extras space between diff and list rules 2021-04-23 00:25:03 +02:00
TomasVotruba
b76346d710 fix style 2021-04-23 00:19:22 +02:00
TomasVotruba
7192eb2a4b fix type 2021-04-23 00:08:34 +02:00
TomasVotruba
2427ef0332 fix path 2021-04-23 00:04:47 +02:00
TomasVotruba
134cfc6b2a remove unneeded autoload 2021-04-23 00:04:23 +02:00
TomasVotruba
8217d924ff add tests to split repository 2021-04-23 00:01:56 +02:00
Tomas Votruba
159acc8512
remove notifyFileChange() (#6206) 2021-04-22 23:51:32 +02:00
Tomas Votruba
1d0ba2a439
Add AbstractTestCase (#6205) 2021-04-22 21:36:50 +00:00
TomasVotruba
0f697fedb3 use portable shebang 2021-04-22 21:12:02 +02:00
TomasVotruba
3264fc3996 [prefixed] rector dump-autoload, need if box is not used 2021-04-22 21:10:32 +02:00
TomasVotruba
8b2804cc97 skip already included above 2021-04-22 21:02:34 +02:00
TomasVotruba
cd5f9b32dd [prefixed] skip installed versions 2021-04-22 21:01:56 +02:00
TomasVotruba
8457108cdc [Docker] Mimic prefix install 2021-04-22 20:53:10 +02:00