6270 Commits

Author SHA1 Message Date
Tomáš Votruba
791e996b7f
Merge pull request #2095 from keulinho/add-fixture-for-phpunit-x-gt-y-refactoring
Add fixture for phpunit x>y to greaterThan refactoring
2019-10-04 16:03:53 +02:00
Dorian Villet
a599a374dd Change implementation to keep the comments and stack them. 2019-10-04 15:26:55 +02:00
Jonas Elfering
f2bf84a9d4 Add fixture for phpunit x>y to greaterThan refactoring
Fixes: https://github.com/rectorphp/rector/issues/1726
2019-10-04 15:15:11 +02:00
Jonas Elfering
c751fbe533 Clearify recursion 2019-10-04 15:08:10 +02:00
Jonas Elfering
3f509a2dd4 Add not refactorable testCases; clearify recursion 2019-10-04 14:36:48 +02:00
Tomáš Votruba
7e16b2f477
Add an option to skip importing root namespace classes (like \D… (#2077)
Add an option to skip importing root namespace classes (like \DateTime)
2019-10-04 14:33:48 +02:00
Jonas Elfering
0196d1efee Add ShortenElseIfRector
Fixes https://github.com/rectorphp/rector/issues/1945
2019-10-04 14:18:31 +02:00
Tomáš Votruba
6fc2469313
fix stringy str needless for return strings (#2093)
fix stringy str needless for return strings
2019-10-04 14:08:56 +02:00
Tomas Votruba
60f152a1a5 fix stinfy str needless for return strings 2019-10-04 14:05:22 +02:00
Tomáš Votruba
affe5aef5f
Merge pull request #2081 from gnutix/StringifyStrNeedlesRector/adding-testcase
Add failing test: StringifyStrNeedlesRector adds (string) to a method call that returns a string anyway
2019-10-04 13:59:06 +02:00
Tomáš Votruba
5e440fb900
Add UseIncrementAssignRector (#2091)
Add UseIncrementAssignRector
2019-10-04 13:47:02 +02:00
Jonas Elfering
8f4326a784 Split early return, use one fixture 2019-10-04 13:39:43 +02:00
Dorian Villet
8ffce14a64 Add a comment. 2019-10-04 12:57:41 +02:00
Dorian Villet
205754067c Implement DocBlock support, simplify some code, make the fixture more bulletproof (one example of root namespace class, one example of non root namespace class). 2019-10-04 12:55:50 +02:00
Jonas Elfering
c2972dae6b Fix test namespace 2019-10-04 12:37:47 +02:00
Jonas Elfering
2b97228a96 Add UseIncrementAssignRector
Fixes https://github.com/rectorphp/rector/issues/2004
2019-10-04 12:14:10 +02:00
Tomáš Votruba
be455c3a23
Merge pull request #2082 from gnutix/MakeInheritedMethodVisibilitySameAsParentRector/adding-testcase
Fixing 'return new static()' not being covered by MakeInheritedMethodVisibilitySameAsParentRector
2019-10-04 11:44:56 +02:00
Tomáš Votruba
7226e7efef
Merge pull request #2070 from adrozdek/fix/var-dumper-test-trait-argument
Fixed the third argument in VarDumperTestTrait.
2019-10-04 09:44:55 +02:00
Dorian Villet
109d0b8ca9 Move ParentWithPublicConstructor from Fixture to Source. 2019-10-03 23:51:37 +02:00
Dorian Villet
8d8630473e
Use early return for readability and consistency 2019-10-03 23:47:54 +02:00
Tomáš Votruba
1139cdef6e
[DeadCode] Add RemoveUnreachableStatementRector (#2080)
[DeadCode] Add RemoveUnreachableStatementRector
2019-10-03 12:54:32 +02:00
Tomas Votruba
ca2412ead7 fix name importing before strict_types 2019-10-03 11:59:58 +02:00
Tomas Votruba
f04a602d47 apply 2019-10-03 11:59:58 +02:00
Tomas Votruba
6a56bf2a8d [DeadCode] Add RemoveUnreachableStatementRector 2019-10-03 11:59:58 +02:00
Jeroen Smit
ba5cbf381e Added example of broken situation 2019-10-03 11:39:12 +02:00
Tomáš Votruba
19d79a42cf
Merge pull request #2088 from jeroensmit/ConstructorInjectionToActionInjectionRectorFix
Fix changing the wrong property fetches
2019-10-03 11:29:17 +02:00
Jeroen Smit
d3d14c757c Fix changing the wrong property fetches 2019-10-03 11:19:08 +02:00
Dorian Villet
6e55184b83 Add failing test case. 2019-10-03 01:16:53 +02:00
Dorian Villet
bbfa7b9f76 Add a failing test case. 2019-10-03 01:15:18 +02:00
Dorian Villet
239ad3b99f Fix implementation. DocBlock still not handled. 2019-10-03 01:01:09 +02:00
Dorian Villet
d0a29c505d Merge remote-tracking branch 'origin/master' into optional-root-namespace-import 2019-10-03 00:54:28 +02:00
Dorian Villet
3d5d1fbb3d Update a DocBlock. 2019-10-03 00:52:09 +02:00
Dorian Villet
ce379a405f Fix the implementation for 'return new static();'. 2019-10-03 00:50:40 +02:00
Dorian Villet
dae17c98a0 Check for root namespace class differently. 2019-10-03 00:50:05 +02:00
Dorian Villet
3c4f4315f8 Restructure the tests files. 2019-10-03 00:41:14 +02:00
Dorian Villet
0144b780af Put all the test code inside the class' methods. 2019-10-03 00:33:13 +02:00
Dorian Villet
b6f818a7c8 Add a failing test for MakeInheritedMethodVisibilitySameAsParentRector : 'return new self();' works, 'return new static();' does not. 2019-10-03 00:30:43 +02:00
Dorian Villet
dd1a1ade93 Add failing test: it adds (string) to a method call that returns a string anyway. 2019-10-03 00:21:22 +02:00
Tomáš Votruba
8efea04952
fix @TODO malfforms (#2079)
fix @TODO malfforms
2019-10-02 21:25:44 +02:00
Tomas Votruba
cd3182493a decouple resolveTag() 2019-10-02 21:18:45 +02:00
Tomas Votruba
b4dcb809af fix @TODO malfforms 2019-10-02 20:45:51 +02:00
Tomáš Votruba
d74d2d6bd4
Fix type resolution for traversable (#2078)
Fix type resolution for traversable
2019-10-02 20:35:50 +02:00
Tomas Votruba
3a6b3b8d83 fix type resolution for traversable 2019-10-02 20:29:57 +02:00
Tomas Votruba
7fa3909acb decoupling 2019-10-02 20:29:57 +02:00
Tomáš Votruba
3f3ed79756
StringToArrayArgumentProcessRectorTest : add failing test aroun… (#2073)
StringToArrayArgumentProcessRectorTest : add failing test around Traversable
2019-10-02 17:17:42 +02:00
Tomáš Votruba
5ab372dc25
Merge branch 'master' into StringToArrayArgumentProcessRectorTest/fixtures_traversable 2019-10-02 17:17:18 +02:00
Dorian Villet
4c5b5340ef Adding a test. 2019-10-02 17:02:50 +02:00
Tomáš Votruba
dfc813fe7f
Merge pull request #2076 from rectorphp/fix-is-submitted
[Symfony] Fix is submitted
2019-10-02 16:49:43 +02:00
Dorian Villet
23fe195c84 Trying to implement this feature. Not there yet. 2019-10-02 16:33:58 +02:00
Tomas Votruba
ec2ec37538 fix isSubmitted() previous calls for FormIsValidRector 2019-10-02 15:46:02 +02:00