11673 Commits

Author SHA1 Message Date
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
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