209 Commits

Author SHA1 Message Date
Tomas Votruba
cbe41dc497 apply 2019-10-30 21:46:36 +01:00
Tomas Votruba
9b3cf927b1 fix virtual node 2019-10-30 21:46:36 +01:00
Tomas Votruba
617f2cd5d7 simplify isName() 2019-10-30 21:46:36 +01:00
Tomas Votruba
40f998ca90 add test case for auto_import_names + Rector rule 2019-10-30 21:46:36 +01:00
Tomas Votruba
1620cf0211 apply code-quality 2019-10-30 15:38:30 +01:00
Tomas Votruba
40c49710e9 [cs] reoder private methods by call order 2019-10-30 10:49:07 +01:00
Tomas Votruba
813b78925a make sure commander has right current file info after the run 2019-10-23 14:08:36 +02:00
Tomas Votruba
c7e9d4d549 fix importing of freshly added node 2019-10-23 14:08:36 +02:00
Tomas Votruba
b30f5cedf6 fix RemoveUnusedAliasRector for doc vs class concurency 2019-10-19 14:29:55 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
b1d031031b Fix EncapsedStringsToSprintfRector for non-var exprs 2019-10-10 15:26:03 +01:00
Tomáš Votruba
cdc8696819
EncapsedStringsToSprintfRector fails when using class properties (#2128)
EncapsedStringsToSprintfRector fails when using class properties
2019-10-10 15:18:44 +01:00
Dorian Villet
1cf50c6aaf Add a failing test for EncapsedStringsToSprintfRector. 2019-10-09 14:59:30 +02:00
Tomas Votruba
471abfbcca add CommanderCollector 2019-10-09 02:40:52 +01:00
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