144 Commits

Author SHA1 Message Date
Aerendir
08b681999e Add failing test case for use of $this in the same class. 2020-03-07 12:08:55 +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
TomasVotruba
40ab236fee skip empty method on open-source 2020-03-01 23:42:35 +01:00
TomasVotruba
0f8cdacd26 decouple FuncCallManipulator 2020-03-01 10:28:52 +01:00
TomasVotruba
b611c4aeda decouple MagicMethodDetector 2020-03-01 10:06:59 +01:00
TomasVotruba
8b5c4f5726 [DeadCode] Fix shifted value 2020-03-01 09:53:08 +01:00
TomasVotruba
5aab2cec96 improve NodeTypeResolver complexity 2020-03-01 01:22:10 +01:00
TomasVotruba
94610569e7 improve ReturnTypeDeclarationRector complexity 2020-03-01 00:46:14 +01:00
TomasVotruba
37eaf518db improve RemoveUnusedAliasRector complexity 2020-03-01 00:38:46 +01:00
TomasVotruba
fe86fc4365 make use of isFuncCallName() method 2020-03-01 00:06:45 +01:00
TomasVotruba
83eca131e9 improve ForToForeachRector 2020-03-01 00:03:32 +01:00
TomasVotruba
9ff0b6a07a decopule isNodePartOfAssign() method 2020-02-29 23:55:00 +01:00
TomasVotruba
903483bf96 decouple ClassInsertManipulator 2020-02-29 22:10:06 +01:00
TomasVotruba
7eb2ac0e36 decopule class dependency manipulator methods 2020-02-29 21:22:00 +01:00
TomasVotruba
d5b5e94508 add format preserving to union type node 2020-02-29 21:02:31 +01:00
TomasVotruba
7bc1703859 improve class cognitive complexity 2020-02-29 19:14:40 +01:00
TomasVotruba
67104fdca3 remove unused methods from ClassManipulator 2020-02-29 17:00:19 +01:00
TomasVotruba
53ac8fcc41 make RemoveUnusedClassConstant skip open-source public constants 2020-02-29 15:28:08 +01:00
TomasVotruba
6420f9322e fixup! Merge pull request #2966 from rectorphp/public-abstract 2020-02-29 15:23:37 +01:00
TomasVotruba
d1b63e2e55 fix typoe open-source parameter 2020-02-29 15:06:05 +01:00
TomasVotruba
e6489efac1 fix complexity 2020-02-29 12:37:22 +01:00
TomasVotruba
935b08e4ad fix get class on trait 2020-02-29 02:10:30 +01:00
Tomas Votruba
d3bf2c0364
Merge pull request #2950 from gnutix/GetClassOnNullRector/add_broken_test_in_trait
[GetClassOnNullRector] Add failing test in trait.
2020-02-29 02:06:11 +01:00
TomasVotruba
cabe6d5e62 fix scoping of OxidEsales 2020-02-29 01:37:15 +01:00
TomasVotruba
128910963a various fixes 2020-02-29 01:29:42 +01:00
Tomas Votruba
8f3e90ba7f
Merge pull request #2956 from gnutix/AssertTrueFalseInternalTypeToSpecificMethodRector/add-broken-test-method-call
AssertTrueFalseInternalTypeToSpecificMethodRector: add broken test method call
2020-02-29 01:23:55 +01:00