3688 Commits

Author SHA1 Message Date
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
TomasVotruba
59d30ef584 check for used variable without comments 2020-03-09 23:42:24 +01:00
Tomas Votruba
59cf0665cb
Merge pull request #3009 from Aerendir/AnnotateThrowables-support-this-same-class
[ReadyToBeMerged][AnnotateThrowables] Support `$this` calling a method of the same class
2020-03-09 16:17:19 +01:00
TomasVotruba
21238589fe Revert "remove unused file"
This reverts commit c50621c4f92e18071e046a8f2137d029563a81f7.
2020-03-09 15:54:35 +01:00
TomasVotruba
c50621c4f9 remove unused file 2020-03-09 15:46:20 +01:00
Aerendir
8be8bc73ed Add failing test case for use of $this in same class with assignment. 2020-03-07 12:09:35 +01:00
Aerendir
08b681999e Add failing test case for use of $this in the same class. 2020-03-07 12:08:55 +01:00
Aerendir
4b0d8ad213 Fix a small mispelling. 2020-03-06 17:45:27 +01:00
Tomas Votruba
5a5d5dc340
Merge pull request #2998 from Aerendir/support-throwing-functions
AnnotateThrowables: support analysis of called functions and methods
2020-03-06 14:20:21 +01:00
Aerendir
5bfe7a15d8 Very deep refactoring. 2020-03-06 10:48:58 +01:00
Aerendir
e88d18ca98 Clean tests folder. 2020-03-05 14:25:49 +01:00
Aerendir
cc0fcb8446 Small refactorings. 2020-03-05 14:25:49 +01:00
Aerendir
1cbb1f1fe8 Support $this->method(). 2020-03-05 14:25:49 +01:00