Commit Graph

246 Commits

Author SHA1 Message Date
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
c227752552 fix negation of scalar in IdenticalFalseToBooleanNotRector 2019-11-05 13:35:05 +01:00
Tomas Votruba
04e0de2429 fix implode of string/string 2019-11-05 13:35:04 +01:00
Tomas Votruba
e4bf0e923c add coding-style set + apply 2019-11-05 13:05:14 +01:00
Tomas Votruba
0bb23e888b fix standalone run to symfony demo 2019-11-05 10:15:50 +01:00
Jeroen Smit
c41737e3a2 Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-11-01 15:55:46 +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
Jeroen Smit
d9d2af5058 Rename variables 2019-10-27 18:40:59 +01:00
Jeroen Smit
44db1271cb Merge branch 'master' of github.com:rectorphp/rector into previousStatementRewrite 2019-10-27 18:14:00 +01:00
Jeroen Smit
10391ae7f2 Rewrite of expression to previous statement 2019-10-27 17:50:26 +01:00
Tomas Votruba
55826c1432 add ternary operator 2019-10-26 12:41:01 +02:00
Tomas Votruba
07413334f7 optimize ConsoleExecuteReturnIntRector 2019-10-26 12:11:49 +02:00
Jonas Elfering
8e19132c7b Fix ConsoleExecuteReturnIntRector if target class not directly extends Command
Fixes: https://github.com/rectorphp/rector/pull/2200#issuecomment-546327783
2019-10-25 14:45:54 +02:00
Jonas Elfering
cb3ef10aef Fix ConsoleExecuteReturnIntRector for non console commands
Fixes: https://github.com/rectorphp/rector/pull/2197
2019-10-25 12:39:01 +02:00
Fran Moreno
a4099eb99b Add test to ConsoleExecuteReturnIntRector for a not command class 2019-10-25 10:53:33 +02:00
Tomas Votruba
8d1b732d0f use ->name on method call 2019-10-24 11:54:47 +02:00
Tomas Votruba
4dfd0a6331 [PHP 74] Add ChangeReflectionTypeToStringToGetNameRector 2019-10-24 01:49:34 +02:00
Tomas Votruba
2407aaec05 Fix class annotation removal [closes #2158] 2019-10-18 20:39:46 +02:00
Tomas Votruba
f0f20c457e fix cs 2019-10-14 19:06:43 +02:00
Tomáš Votruba
a98d6f93d0
Merge pull request #2132 from keulinho/add-console-execute-return-int-rector
[Symfony] Add ConsoleExecuteReturnIntRector
2019-10-14 16:38:56 +02:00
Jonas Elfering
c016a810d4 Fix static analysis 2019-10-14 08:24:21 +02:00
Jonas Elfering
cce6f32dd8 Use isName() instead of string compare 2019-10-14 08:12:12 +02:00
Jonas Elfering
1ecef4cedd Cast return value if its not an int 2019-10-13 11:19:27 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Jonas Elfering
16e225ba06 Add ability to refactor called methods 2019-10-11 23:01:02 +02:00
Jonas Elfering
33a41ddb4a Add ConsoleExecuteReturnIntRector
Fixes: https://github.com/rectorphp/rector/issues/2119
2019-10-10 15:34: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
Tomas Votruba
f04a602d47 apply 2019-10-03 11:59:58 +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
5ab372dc25
Merge branch 'master' into StringToArrayArgumentProcessRectorTest/fixtures_traversable 2019-10-02 17:17:18 +02:00
Tomas Votruba
ec2ec37538 fix isSubmitted() previous calls for FormIsValidRector 2019-10-02 15:46:02 +02:00
Tomas Votruba
f3783ac164 simplify fixture 2019-10-02 15:18:19 +02:00
Dorian Villet
6ab3ee9a67 Add failing test case for StringToArrayArgumentProcessRectorTest about Traversable. 2019-10-02 14:50:59 +02:00
Dorian Villet
946ef1e9c2 Simplify fixtures files. 2019-10-02 14:50:59 +02:00
Dorian Villet
7a06337384 Add tests for #2056. 2019-10-02 10:53:44 +02:00
Agata
fa242fec31 Fixed third argument in VarDumperTestTrait. 2019-10-01 22:07:51 +02:00
Tomas Votruba
8c259c8d92 add stubs over mirror class names in tests 2019-09-30 09:12:25 +02:00
Tomas Votruba
ed0e2ca0eb use setParameter() 2019-09-28 14:30:12 +02:00
Tomas Votruba
c626a50d94 cleanup + allow various format of imported annotations 2019-09-27 21:45:25 +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
18ebc3d499 improve cs 2019-09-26 16:27:53 +02:00
Tomas Votruba
e40f610399 fix cs 2019-09-26 15:27:54 +02:00
Tomas Votruba
46412c73ce [Symfony] Make MakeDispatchFirstArgumentEventRector work with get_class 2019-09-26 13:52:28 +02:00
Tomas Votruba
3b151c8130 [Symfony] Add MergeMethodAnnotationToRouteAnnotationRector 2019-09-24 20:17:50 +02:00
Tomas Votruba
d6d48ea44b make ShouldNotHappenException smarter 2019-09-21 13:30:03 +02:00
Tomas Votruba
d15a1b955e cover name at JoinColumn removal 2019-09-19 19:39:08 +02:00
Tomas Votruba
0adff2c8b2 add getName() 2019-09-19 18:22:37 +02:00