200 Commits

Author SHA1 Message Date
TomasVotruba
5df24b4087 decouple ChildParamPopulator 2020-03-28 16:16:29 +01:00
TomasVotruba
442e2abac5 [TypeDeclaratoin] Add class method param type resolving by property 2020-03-28 16:16:04 +01:00
TomasVotruba
74416461bb use array_key_exists instead of isset 2020-03-28 15:12:29 +01:00
TomasVotruba
22487811b3 [CodeQuality] Add ArrayKeysAndInArrayToIssetRector 2020-03-28 00:26:41 +01:00
TomasVotruba
8338004d4e test = 2020-03-27 22:53:40 +01:00
TomasVotruba
c00b8d4b75 fix bracket mallform in annotations 2020-03-27 22:51:44 +01:00
TomasVotruba
6521583a40 fix importing of non-existing classes 2020-03-27 16:43:42 +01:00
TomasVotruba
31023ee27b # This is a combination of 2 commits.
# This is the 1st commit message:

fix importing of non-existing classes

# The commit message #2 will be skipped:

# fixup! fix importing of non-existing classes
2020-03-27 16:42:50 +01:00
TomasVotruba
557c2521df unused import is responsibility of coding standard 2020-03-27 16:40:52 +01:00
TomasVotruba
6fba2c610c cannot work with non-existing class 2020-03-27 16:40:52 +01:00
TomasVotruba
8f1208d18b drop preg_match support from StrContains, too vague 2020-03-27 15:20:20 +01:00
Den Girnyk
30c337e82c
Fix 'auto_import_names' tests fixtures path 2020-03-27 14:47:52 +02:00
TomasVotruba
3c3aa39f14 [PHP 80] Add StrContainsRector 2020-03-26 23:57:53 +01:00
TomasVotruba
9d4be977c4 remove ctor dependency on property/assign removal 2020-03-26 22:58:28 +01:00
TomasVotruba
5995db8262 add else case 2020-03-26 22:14:10 +01:00
TomasVotruba
6a8aa9b017 add count() > 0 case 2020-03-26 22:09:35 +01:00
TomasVotruba
0fe761f8ff Add empty() check to RemoveUnusedNonEmptyArrayBeforeForeachRector 2020-03-26 21:37:37 +01:00
Tomas Votruba
8406192dca
[DeadCode] Add RemoveAssignOfVoidReturnFunctionRector (#3068) 2020-03-25 22:51:12 +01:00
Tomas Votruba
5204ce1523
[DeadCode] Add RemoveUnusedNonEmptyArrayBeforeForeachRector (#3066) 2020-03-25 19:00:26 +01:00
Tomas Votruba
8492af2af1
[PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector (#3064)
* [PHP 7.4] Fix ChangeReflectionTypeToStringToGetNameRector

* fixup! [Rector CI] Fixed Rector issues

* fixup! [Rector CI] Fixed CS issues

Co-authored-by: rector-bot <tomas@getrector.org>
2020-03-25 15:53:26 +01:00
TomasVotruba
e9cf6e1544 Add basic concat support to PregReplaceEModifierRector 2020-03-25 14:19:37 +01:00
TomasVotruba
9827f7ec07 refactoring 2020-03-25 13:50:03 +01:00
TomasVotruba
b113c38670 [PHP 5.5] Prevent error on non-string value in PregReplaceEModifierRector 2020-03-25 13:42:33 +01:00
TomasVotruba
6a0551f004 [DeadCode] Add RemoveUnusedFunctionRector 2020-03-25 12:50:51 +01:00
TomasVotruba
f5d8804c20 improve PhpVersionFeature autocomplete by PHPStorm 2020-03-24 23:49:19 +01:00
TomasVotruba
ff6a3d3140 [PHP 7.4] Add RestoreDefaultNullToNullableTypePropertyRector 2020-03-24 23:45:15 +01:00
TomasVotruba
d608507f2e rename PHP sets to comply with standard 2020-03-24 23:44:42 +01:00
TomasVotruba
90044b30bc [PHP 7.4] Add default null type on properties 2020-03-24 23:07:33 +01:00
TomasVotruba
35ef3a0217 [PHP 7.4] Add id tag support + remove default array on collection 2020-03-24 22:49:41 +01:00
TomasVotruba
aa9588f261 [PHP 7.4] Improve TypedProeprtyRector for Doctrine collection 2020-03-24 21:41:19 +01:00
Florian Dorn
f0aca87c6a skip if not used with the array [] operator 2020-03-24 09:54:03 +01:00
TomasVotruba
070c41d7c9 fix union type on ReturnTypeDeclarationRector 2020-03-23 19:33:31 +01:00
TomasVotruba
eb88378488 improve chain method call resolutuin 2020-03-23 17:33:04 +01:00
TomasVotruba
0c3359e217 add variable to method call traverser 2020-03-23 17:16:10 +01:00
TomasVotruba
44a1654b66 split fixture 2020-03-23 17:16:10 +01:00
Grégoire Paris
88f27689eb WIP add createMock to createStub rector 2020-03-23 17:16:10 +01:00
TomasVotruba
3b57181603 add NotifyingNodeRemover 2020-03-19 13:56:38 +01:00
TomasVotruba
11114def28 add remove* method 2020-03-19 13:56:33 +01:00
TomasVotruba
eca4d54f58 add PR annotate workflow 2020-03-19 13:56:23 +01:00
TomasVotruba
1d4a20d402 [DeadCode] Skip shifted variable 2020-03-18 16:56:50 +01:00
TomasVotruba
4615a9d83d Fix ForToForeachRector for used dim fetch 2020-03-16 21:06:50 +01:00
TomasVotruba
66bd900e18 clear fixture 2020-03-16 17:00:19 +01:00
Christian Rishøj
db70bbf21f
separate fixture file (re rectorphp/rector#3026) 2020-03-16 16:17:58 +01:00
Christian Rishøj
6e63e3b0b7
isolate case with inapplicable loop (re rectorphp/rector#3026) 2020-03-16 16:15:56 +01:00
Christian Rishøj
052fb9a506
add failing test case 2020-03-16 14:41:53 +01:00
TomasVotruba
5cc6cdfb2b fix set location 2020-03-16 13:13:16 +01:00
TomasVotruba
18183dd55d add doctrine behaviors 20 2020-03-16 12:51:29 +01:00
Tomas Votruba
a2a32a4919
Merge pull request #3021 from nightlinus/phpunit9-assertContainsEquals
add phpunit 9 rector to convert non-strict assertContains
2020-03-15 19:17:01 +01:00
nightlinus
e2b5ff1df2 SpecificAssertContainsWithoutIdentityRector: add phpunit 9 compatibility rector
As of https://github.com/sebastianbergmann/phpunit/issues/3426 assertContains() and assertNotContains() will perform strict comparisons starting with PHPUnit 9 where non-strict comparisons were performed in PHPUnit 8 and earlier; assertContainsEqual() and assertNotContainsEqual() should be used instead if needed non-strict comparison
2020-03-15 12:16:55 +03:00
TomasVotruba
b2a4787df8 add fix for getIterator() on Finder for Array spread 2020-03-14 14:52:55 +01:00