11696 Commits

Author SHA1 Message Date
TomasVotruba
3139430ea7 [Docker] skip composer dump on scoping 2021-04-22 20:39:25 +02:00
TomasVotruba
c85ee538ba [prefixed] do not dump autoload 2021-04-22 20:31:02 +02:00
Abdul Malik Ikhsan
cb6e874df3
[DeadCode] Skip expr check from statement on RemoveUnusedVariableAssignRector for Nop stmt (#6204)
* [DeadCode] Skip expr check from statement on RemoveUnusedVariableAssignRector for Nop stmt

* enforce with Expression check

* [ci-review] Rector Rectify

* fix

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 15:44:33 +00:00
TomasVotruba
4ade016794 [prefixed] remove phpunit test case, should be part of local env 2021-04-22 16:37:54 +02:00
TomasVotruba
714193b836 [prefixed] skip test case 2021-04-22 16:32:07 +02:00
TomasVotruba
f801c763a4 [prefixed] skip Kernel test case 2021-04-22 16:23:41 +02:00
TomasVotruba
449118b83e slash 2021-04-22 15:25:56 +02:00
Abdul Malik Ikhsan
60195c951a
[DowngradePhp71] Add DowngradeIsIterableRector (#6202)
* [DowngradePhp71] Add DowngradeIsIterableRector

* add test

* return new BooleanOr

* [ci-review] Rector Rectify

* fixed with traverseNodesWithCallable

* skip not is iterable

* fix

* example

* register to downgrade-php71 config set

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 13:22:16 +00:00
Tomas Votruba
ce4711ba93
[Downgrade] Report downgrade changes of type correctly (#6203) 2021-04-22 13:10:04 +00:00
TomasVotruba
62f5d73ade [prefixed] add missing mask on regex 2021-04-22 15:05:34 +02:00
TomasVotruba
1f798a6816 [prefixed] restore prefixing in test cases 2021-04-22 15:00:44 +02:00
Ruud Kamphuis
40c0f3f0c0
[UnionTypesRector] Do not refactor inherited methods (#6201)
# Failing Test for UnionTypesRector

Based on https://getrector.org/demo/6298a30b-d9f5-4fa0-b1f8-9712b0e98582

```
PHP Fatal error:  Declaration of Child::enqueueAt(DateTime|int $at) must be compatible with SomeParent::enqueueAt($at)
```
2021-04-22 14:47:25 +02:00
Ruud Kamphuis
f17df67963
[TypedPropertyRector] Do not refactor to iterable property type (#6196)
# Failing Test for TypedPropertyRector

Based on https://getrector.org/demo/3a8fc4f5-898d-4fb4-8ed3-99dc8312df77

```
Fatal error: Cannot use iterable as iterable because 'iterable' is a special class name
```
2021-04-22 14:20:04 +02:00
Ruud Kamphuis
38871e68a2
[TypedPropertyRector] Do not refactor to callable property type (#6197)
# Failing Test for TypedPropertyRector

Based on https://getrector.org/demo/e8724b53-a00c-4f0c-b10f-e4e54be0a664

```
PHP Fatal error:  Property SkipCallablePropertyType::$startDate cannot have type DateTimeImmutable|callable
```
2021-04-22 14:19:24 +02:00
Tomas Votruba
45db3289b9
Fix type (#6200) 2021-04-22 11:58:54 +00:00
Tomas Votruba
94df140c4d
[Downgrade] Report changed widening in another class (#6193)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 11:29:04 +00:00
Tomas Votruba
507bd85c3e
[Downgrade] Report only changed return types (#6191) 2021-04-22 10:04:58 +00:00
TomasVotruba
dfc01349db separate downgrade paths to string 2021-04-22 11:43:58 +02:00
TomasVotruba
f65878c920 full plugin unprefix 2021-04-22 10:47:10 +02:00
TomasVotruba
a71a812c33 unprefix event dipsatcher 2021-04-22 10:43:41 +02:00
TomasVotruba
19b81eb180 unprefix plugin class 2021-04-22 10:40:36 +02:00
Sebastian Schreiber
5cab6367fb
[TASK] Use rector-installer to load config of extensions (#6174) 2021-04-22 10:30:18 +02:00
Tomas Votruba
ff57c49662
[PHP 7.2] Add covariant param support for trait methods (#6190)
* [Downgrade PHP 7.2] Handle trait methods too

* move DowngradeParameterTypeWideningRector to Class_ namespace

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-22 00:02:38 +02:00
TomasVotruba
a57fd196c8 fix phpstan 2021-04-21 22:58:06 +02:00
TomasVotruba
ddcc9d39c0 add iterable to PHP 7.1 downgrade set 2021-04-21 22:49:14 +02:00
TomasVotruba
15cc050332 [prefixed] prefix vendor by vendor name 2021-04-21 22:03:40 +02:00
TomasVotruba
731fe21ddb reorganize 2021-04-21 21:55:02 +02:00
TomasVotruba
8299be5bc3 [prefixed] merge service contracts to single dir 2021-04-21 21:54:11 +02:00
TomasVotruba
65ea97a56d [prefixed] downgrade vendor as one 2021-04-21 21:49:54 +02:00
TomasVotruba
43031f0edf no prefix test case 2021-04-21 21:44:33 +02:00
TomasVotruba
6e5019d6e9 fixing test case scoping 2021-04-21 21:17:30 +02:00
TomasVotruba
ee2e5a93c1 fix 2021-04-21 21:05:25 +02:00
TomasVotruba
1bc2d73342 unprefix test case 2021-04-21 21:04:26 +02:00
TomasVotruba
ef4a30a967 unprefix test case 2021-04-21 20:56:03 +02:00
TomasVotruba
bd57281297 unprefixed kernel test case 2021-04-21 20:49:54 +02:00
TomasVotruba
d83bef97b6 [prefixed] skip AbstractKernelTestCase 2021-04-21 14:53:22 +02:00
TomasVotruba
df7e3f2f82 fix assumption var 0.10.9 2021-04-21 01:05:56 +02:00
TomasVotruba
9a19a25218 fix not expression 2021-04-21 01:04:14 +02:00
TomasVotruba
4064d01f84 [Renaming] Keep old to new classes same value in collector and RenameClassRector 0.10.8 2021-04-20 21:50:42 +02:00
Tomas Votruba
4dfd6df447
[TypeDeclaration] Skip exception on void (#6182) 2021-04-20 19:50:10 +00:00
Tomas Votruba
aee2cb0f07
prefixed - require compatible PHPStan with attribute phpdoc-parser (#6181) 0.10.7 2021-04-20 19:00:46 +00:00
Ruud Kamphuis
c87f5d7217
Allow composer/xdebug-handler v2 (#6179)
Hopefully this fixes:

```
  Problem 1
    - friendsofphp/php-cs-fixer is locked to version v3.0.0-rc.1 and an update of this package was not requested.
    - rector/rector 0.10.6 requires composer/xdebug-handler ^1.4 -> satisfiable by composer/xdebug-handler[1.4.0, ..., 1.4.6].
    - You can only install one version of a package, so only one of these can be installed: composer/xdebug-handler[1.4.0, ..., 1.4.6, 2.0.0].
    - friendsofphp/php-cs-fixer v3.0.0-rc.1 requires composer/xdebug-handler ^2.0 -> satisfiable by composer/xdebug-handler[2.0.0].
    - Root composer.json requires rector/rector ^0.10.6 -> satisfiable by rector/rector[0.10.6].
```
2021-04-20 19:09:06 +02:00
Abdul Malik Ikhsan
201c73da92
[Scoper] Downgrade rector.php as well for PHP 7.0 void (#6177)
* [Scoper] Downgrade rector.php as well for PHP 7.0 void

* run on rector.php in rector-build as well
2021-04-20 15:30:07 +00:00
Abdul Malik Ikhsan
49ca43cf17
[Scoped] Allow PHP 7.0 on rector-prefixed build (#6175) 2021-04-20 15:43:28 +02:00
Tomas Votruba
d723aca946
[TypeDeclaratio] Skip abstract method in AddVoidReturnTypeWhereNoReturnRector (#6173) 2021-04-20 12:41:41 +00:00
Abdul Malik Ikhsan
cd3725aeb5
[DowngradePhp71] Add DowngradeKeysInListRector (#6170)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-20 14:21:02 +02:00
Sebastian Schreiber
deafaf9ecd
[BUGFIX] Reusage of RenamedClassesDataCollector (#6172)
- If reusing the RenamedClassesDataCollector in another rector the additional classes get overriden
2021-04-20 13:49:16 +02:00
TomasVotruba
3e3c2dc40d use changelog annotation 2021-04-19 18:15:52 +02:00
Tomas Votruba
eda5bf1ea3
[DeadCode] Add RemoveUnusedPrivateMethodParameterRector (#6168)
* [DeadCode] Add RemoveUnusedPrivateMethodParameterRector

This reverts commit c815334bed781c555f08dff82ce7861d758e9e7a.

* [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-19 15:19:14 +02:00
Joyce Babu
49d4f71214
Fix #6161 (#6166) 2021-04-19 11:02:12 +00:00