195 Commits

Author SHA1 Message Date
Tomas Votruba
ea5126622b keep comments in ReturnArrayClassMethodToYieldRector 2019-10-05 11:37:40 +02:00
Tomáš Votruba
299ad8705a
Merge pull request #2096 from gnutix/ImportFullyQualifiedNamesRector/fix-docblocks
ImportFullyQualifiedNamesRector : add a failing test about modified annotations that shouldn't be
2019-10-05 11:10:33 +02:00
Tomáš Votruba
345d4774e8
Merge pull request #2084 from gnutix/ReturnArrayClassMethodToYieldRector/add-testcase
Add failing test case for ReturnArrayClassMethodToYieldRector (removing comments)
2019-10-05 10:17:50 +02:00
Tomas Votruba
9271588573 [StrictCodeQuality] Add VarInlineAnnotationToAssertRector 2019-10-05 00:09:15 +02:00
Tomáš Votruba
d19a83d755
Add FunctionCallToConstantRector (#2100)
Add FunctionCallToConstantRector
2019-10-04 22:31:54 +02:00
Jonas Elfering
b52a173077 Fix phpstan errors 2019-10-04 21:14:16 +02:00
Jonas Elfering
8e54c1068d Split specific and generic rector 2019-10-04 21:03:27 +02:00
Jonas Elfering
ce91f7d58d Fix phpstan errors 2019-10-04 20:37:43 +02:00
Dorian Villet
d010b8f3fd Fix fixtures separator. 2019-10-04 18:08:20 +02:00
Dorian Villet
43744e7cb7 Yet better fixtures. 2019-10-04 18:04:07 +02:00
Dorian Villet
06d59a16d6 Better fixtures. 2019-10-04 18:02:01 +02:00
Jonas Elfering
7b138c7877 Add FunctionCallToConstantRector
Fixes: https://github.com/rectorphp/rector/issues/2008
2019-10-04 17:57:14 +02:00
Dorian Villet
3296681cb1 Create a better contrast between the two examples. 2019-10-04 17:01:46 +02:00
Dorian Villet
7c9f4a33cd Add documentation for ImportFullyQualifiedNamesRector new '$shouldImportRootNamespaceClasses' argument. 2019-10-04 16:59:50 +02:00
Dorian Villet
88eb270ff8 Add a failing test case. 2019-10-04 16:24:18 +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
Tomas Votruba
60f152a1a5 fix stinfy str needless for return strings 2019-10-04 14:05:22 +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
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
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
Tomas Votruba
ca2412ead7 fix name importing before strict_types 2019-10-03 11:59:58 +02:00
Dorian Villet
6e55184b83 Add failing test case. 2019-10-03 01:16:53 +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
b6f818a7c8 Add a failing test for MakeInheritedMethodVisibilitySameAsParentRector : 'return new self();' works, 'return new static();' does not. 2019-10-03 00:30:43 +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
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
Tomas Votruba
b27f7fe797 [CodingStyle] Skip common annotation aliases in RemoveUnusedAliasRector 2019-10-02 15:01:09 +02:00
Dorian Villet
946ef1e9c2 Simplify fixtures files. 2019-10-02 14:50:59 +02:00
Dorian Villet
7d2b4dda4b Add failing test for #1116. 2019-10-02 12:33:48 +02:00
Tomas Votruba
4c3799adb3 [CodingStyle] Allow ctor override for PHP 7.2 in MakeInheritedMethodVisibilitySameAsParentRector 2019-09-30 16:57:00 +02:00
Tomáš Votruba
8e442f9fb6
Add post run name imports (#2052)
Add post run name imports
2019-09-28 14:46:06 +02:00
Tomas Votruba
0b18a193f4 decouple NameImporter 2019-09-28 14:33:41 +02:00
Tomas Votruba
9ef3801b41 cleanup 2019-09-28 13:18:11 +02:00
Jeroen Herczeg
4b9120c952 Added StrictArraySearchRector - Issue #2009 2019-09-28 00:34:34 +02:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
598f228c6d decouple php doc ast node to factories 2019-09-27 14:40:09 +02:00
Tomas Votruba
ab10145d77 fix missing scope 2019-09-26 16:27:53 +02:00
Tomas Votruba
a18f1c3daf [CodingStyle] Add CallUserFuncCallToVariadicRector 2019-09-25 23:13:37 +02:00