10258 Commits

Author SHA1 Message Date
Tomas Votruba
a6e85fe69a
[PHPUnit] Fix AddSeeTestAnnotationRector for same short name, but different namespace (#4488)
* [PHPUnit] Fix AddSeeTestAnnotationRector for same short name, but different namespace

* correct namespaces
0.8.43
2020-10-27 00:42:04 +00:00
Abdul Malik Ikhsan
7a1ea1328b
[CodeQuality] Register MoveOutMethodCallInsideIfConditionRector to config code-quality set (#4477)
* [CodeQuality] Register MoveOutMethodCallInsideIfConditionRector to config code-quality set

* rename use string parameter

* phpstan

* fix false positive string param to be var === variable name

* fix false positive

* phpstan

* ensure not same variable

* phpstan

* add ucfirst after var

* add fixture failing test for variable exists to be skipped

* add fixture failing test for variable exists in previuos statement

* phpstan space

* add handling variable exists in previous statement and in ClassMethod/Functions args

* handle exists but inside if

* reduce complexity

* clean up

* clean up

* cs fix

* phpstan

* remove - in variable

* use fallback when first character is numeric

* using regex to check string start alpha for variable

* cs fix

* use ClassConstFetch name to set variable name

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* clean up

* fix

* [ci-review] Rector Rectify

* Update rules/code-quality/src/Rector/If_/MoveOutMethodCallInsideIfConditionRector.php

* Update rules/code-quality/src/Rector/If_/MoveOutMethodCallInsideIfConditionRector.php

Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-26 14:03:26 +00:00
Tomas Votruba
20e95bee61
[CI] Run ECS only on match git diff (#4487)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-26 12:28:32 +01:00
Tomas Votruba
2e86dc5876 colors to ci 2020-10-26 11:53:57 +01:00
Tomas Votruba
80d688413d fix stan 2020-10-26 11:44:06 +01:00
Tomas Votruba
5f3b4bde1f
[Naming] Allow does in MakeIsserClassMethodNameStartWithIsRector (#4486) 2020-10-26 10:22:20 +00:00
Tomas Votruba
0d6b5aea7a kodiak: update branches with tagp 2020-10-26 01:41:07 +01:00
Tomas Votruba
f6fc2f8750 kodiak: update branches 2020-10-26 01:36:14 +01:00
Tomas Votruba
9c91a60018
[ci] add ci-review job (#4484)
* [ci] add ci-review job

* add all

* [ci] add docs check

* [ci] simler rector ci
2020-10-26 00:14:24 +00:00
Tomas Votruba
6f56d0dfbe
[docs] apply correct standard on dumper Rector list + apply automated CI commit on propagate monorepo deps (#4481) 2020-10-26 00:22:53 +01:00
Tomas Votruba
0b2688464f
Travis: use composer 1 to fix bug with psr packages 2020-10-25 17:19:21 +01:00
Jan Mikeš
d864005904
Fix not provided --output-file argument translated into string instead of null (#4480)
* Fix not provided --output-file argument translated into string instead of null
Fixes #4456

* [rector] Fix not provided --output-file argument translated into string instead of null Fixes #4456

* [cs] Fix not provided --output-file argument translated into string instead of null Fixes #4456

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-25 15:26:01 +01:00
Tomas Votruba
bdf9464d25 skip bugged phpstan file 2020-10-25 14:56:11 +01:00
Tomas Votruba
2fc46fde21 ci: use compsoer v1 2020-10-25 14:49:56 +01:00
Tomas Votruba
0f2e6d407e
[DoctrineAnnotaitonGenerated] Update to doctrine/annotations 1.11 + fix static (#4479) 2020-10-25 14:43:05 +01:00
Tomas Votruba
5bb03f2fcb composer: bump symplify dpes 0.8.42 2020-10-25 01:20:14 +02:00
Abdul Malik Ikhsan
11c76808be
[CodeQuality] Add MoveOutMethodCallInsideIfConditionRector (#4457)
* Add MoveOutMethodCallInsideIfConditionRector

* cs fix

* implemented handling pass constant to arg 0

* phpstan

* final touch: no need strtolower() before ucfirst on fallback var name
2020-10-23 15:15:54 +02:00
Abdul Malik Ikhsan
be06b60eac
Typo Fix: Strings::endWith() should be Strings::endsWith() (#4475)
* Typo Fix: Strings::endWith() should be Strings::endsWith()

* [rector] Typo Fix: Strings::endWith() should be Strings::endsWith()

* [cs] Typo Fix: Strings::endWith() should be Strings::endsWith()

* phpstan

* [rector] phpstan

* [cs] phpstan

* cs fix

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-23 11:23:12 +02:00
Tomas Votruba
6c51f3fb4f
[Restoration] Add InferParamFromClassMethodReturnRector (#4471)
Co-authored-by: rector-bot <tomas@getrector.org>
0.8.41
2020-10-21 23:06:24 +02:00
Tomas Votruba
10ae0d687a
[CodeQuality] Add NewStaticToNewSelfRector (#4468)
* [CodeQuality] Add NewStaticToNewSelfRector

* regenerated docs

* drop patches
0.8.40
2020-10-20 22:01:47 +00:00
TomasVotruba
4fc93376c6 typo fi 0.8.39 2020-10-20 23:34:05 +02:00
TomasVotruba
728b29cb48 travis: add explicit tag to split 2020-10-20 23:26:44 +02:00
Tomas Votruba
aa98eb5d9e
[CodeQuality] Skip dynamic properties for bindTo() (#4467)
* [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [rector] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [cs] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.38
2020-10-20 22:43:05 +02:00
Tomas Votruba
75d25a1dcb
[CodeQuality] Decouple complete dynamic properties rector, add skip of Closure::bind() (#4466)
* [ci] temporarily hide split monorepo

* [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [rector] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

* [cs] [CodeQuality] Decouple complete dynamic properties rector, add skip of bind()

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:27:12 +00:00
Tomas Votruba
5988584736
[CodeQuality] Improve missing property type resolution for array dim fetch (#4462)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 20:35:35 +02:00
TomasVotruba
88fb49c9d2 add env 2020-10-20 19:00:02 +02:00
TomasVotruba
d14b17f664 fix github action version 2020-10-20 18:49:35 +02:00
TomasVotruba
c35b3f3453 [ci] test split monorepo 2020-10-20 18:46:09 +02:00
TomasVotruba
740ea09af0 try monorepo split patching 0.8.37 2020-10-20 17:24:14 +02:00
Tomas Votruba
b9f45eab00
[CodeQuality] Skip nested foreach (#4461) 0.8.36 2020-10-20 17:07:01 +02:00
Tomas Votruba
8bdb879a55
[CodeQuality] Add nested foreach foreach that is required for assign (#4459) 0.8.35 2020-10-20 14:24:32 +00:00
TomasVotruba
362b62531a ci: run coverage only on master 2020-10-20 16:23:58 +02:00
TomasVotruba
7c303021c4 [PHP 7.1] Skip variable arguments count for RemoveExtraParametersRector 2020-10-20 15:05:37 +02:00
Tomas Votruba
9d2757f80d
[CodeQuality] Support multi boolean and in isset on property (#4455)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-20 12:50:21 +02:00
TomasVotruba
042d1e0ddf README: bump sonar debt to 30 days 2020-10-19 17:39:58 +02:00
TomasVotruba
3fad5a1c38 restore origina monorepo builder split 2020-10-19 17:39:16 +02:00
TomasVotruba
a371f7cb70 testing split to new package 2020-10-19 17:32:08 +02:00
TomasVotruba
e59cb4c244 try chaing package 2020-10-19 17:30:57 +02:00
TomasVotruba
23acc41b3c try monorepo split patch fix 2020-10-19 17:24:51 +02:00
Tomas Votruba
4f37d2ec3f
decouple ProjectType from Option (#4451) 2020-10-19 15:11:40 +00:00
Tomas Votruba
9869678e4a
[DeadCode] Fix removal of if->cond (#4450) 0.8.34 2020-10-19 16:38:02 +02:00
Tomas Votruba
deabd2d593
[CI] fasten up Rector CI feedback (#4449) 2020-10-19 16:37:35 +02:00
Tomas Votruba
5b37363b60
[DeadCode] Add expr-names support to RemoveEmptyMethodCallRector (#4448)
* [DeadCode] Add expr-names support to RemoveEmptyMethodCallRector

* skip abstract method
2020-10-19 13:35:37 +00:00
Tomas Votruba
c18b06b474
[DeadCode] Cover array dim fetch assign (#4446) 0.8.33 2020-10-19 01:46:38 +02:00
Tomas Votruba
29594b63f4
[DeadCode] Count arg value as used (#4445) 2020-10-18 23:18:04 +00:00
TomasVotruba
2dbb5a898b travis: add max processes to spit 2020-10-19 00:11:40 +02:00
Raffael Comi
073a2a3eee
Infer var type annotation only if none exists (#4443) 2020-10-19 00:05:36 +02:00
Tomas Votruba
f96372e1c0
make use of Types of doc types (#4444) 0.8.32 2020-10-18 21:49:54 +02:00
Abdul Malik Ikhsan
26ab509d7a
[CodeQuality] Register IssetOnPropertyObjectToPropertyExistsRector to code-quality config set (#4441)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-18 20:42:49 +02:00
Tomas Votruba
e845d7cea8
[DoctrineCodeQuality] Add ImproveDoctrineCollectionDocTypeInEntityRector (#4442)
Co-authored-by: rector-bot <tomas@getrector.org>
0.8.31
2020-10-18 18:29:35 +02:00