268 Commits

Author SHA1 Message Date
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
Aerendir
fe1a46e2b8 Apply fixes. 2020-03-05 10:05:35 +01:00
Aerendir
02673e6a77 Add doc comment to refactor() method. 2020-03-05 09:58:41 +01:00
Aerendir
60e00df74c Add link to regex101.com. 2020-03-05 09:58:41 +01:00
Aerendir
547b4d40b5 Support ClassMethod. 2020-03-05 09:58:41 +01:00
Aerendir
c3d23f2491 Support Assign. 2020-03-05 09:58:36 +01:00
TomasVotruba
1b937ec0e0 fix method annotation 2020-03-04 23:22:29 +01:00
Aerendir
ec691ff260 Support throwing methods. 2020-03-04 17:13:51 +01:00
Stefan Blanke
19d18c5a6a Add two failings tests 2020-03-04 14:54:21 +01:00
Aerendir
d7cd5c3cba Complete refactoring. 2020-03-04 14:41:59 +01:00
Aerendir
d449075643 Support analysis of called functions. 2020-03-04 09:13:42 +01:00
Dorian Villet
b550b6bf3b Fix various static calls errors in PHPUnit Rectors. 2020-03-03 13:35:18 +01:00
Tomas Votruba
3d0bf1163d
Merge pull request #2990 from gnutix/AssertTrueFalseToSpecificMethodRector/add-broken-test-static-call
AssertTrueFalseToSpecificMethodRector: add broken test ('Pick more specific node than PhpParser\Node\Expr\StaticCall')
2020-03-03 11:52:39 +01:00
Dorian Villet
8425410119 Fix the implementation. 2020-03-03 10:23:43 +01:00
TomasVotruba
9c92126265 fix spacing of data provider 2020-03-03 10:18:54 +01:00
Dorian Villet
454e78ce8a AssertTrueFalseToSpecificMethodRector: add broken test ('Pick more specific node than PhpParser\Node\Expr\StaticCall'). 2020-03-03 09:59:49 +01:00
TomasVotruba
b8ccd71b3a improve param array type for change type 2020-03-02 23:44:10 +01:00
TomasVotruba
f7f2977748 fix count() code qauality 2020-03-02 17:38:00 +01:00
TomasVotruba
a8fa941193 Fix PhpDocInfoPrinter slash removal 2020-03-02 17:25:15 +01:00
TomasVotruba
376e2e43ac skip open-source protected methods 2020-03-02 00:08:24 +01:00
TomasVotruba
54560e1143 add test case for open-source protected agr 2020-03-02 00:04:26 +01:00