Jonas Elfering
0196d1efee
Add ShortenElseIfRector
...
Fixes https://github.com/rectorphp/rector/issues/1945
2019-10-04 14:18:31 +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
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
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
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
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
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
Tomáš Votruba
dfc813fe7f
Merge pull request #2076 from rectorphp/fix-is-submitted
...
[Symfony] Fix is submitted
2019-10-02 16:49:43 +02:00
Tomas Votruba
ec2ec37538
fix isSubmitted() previous calls for FormIsValidRector
2019-10-02 15:46:02 +02:00
Tomáš Votruba
ab53beaab3
Merge pull request #2075 from gnutix/phpunit-testcase-stub
...
Fix ReflectionException (Method PHPUnit\Framework\TestCase::tearDown(...) does not exist) thrown while autoloading class Symfony\Bundle\FrameworkBundle\Test\WebTestCase.
2019-10-02 15:37:05 +02:00
Dorian Villet
cca26f68fc
Fix ReflectionException (Method PHPUnit\Framework\TestCase::tearDown() does not exist) thrown while autoloading class Symfony\Bundle\FrameworkBundle\Test\WebTestCase.
2019-10-02 15:18:38 +02:00
Tomas Votruba
f3783ac164
simplify fixture
2019-10-02 15:18:19 +02:00
Tomáš Votruba
1879c0f286
[CodingStyle] Skip common annotation aliases in RemoveUnusedAli… ( #2072 )
...
[CodingStyle] Skip common annotation aliases in RemoveUnusedAliasRector
2019-10-02 15:09:18 +02:00
Tomas Votruba
b27f7fe797
[CodingStyle] Skip common annotation aliases in RemoveUnusedAliasRector
2019-10-02 15:01:09 +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
Tomáš Votruba
cccbf02edc
Add a PHPUnit TestCase stub. ( #2074 )
...
Add a PHPUnit TestCase stub.
2019-10-02 14:47:24 +02:00
Dorian Villet
29a329f0b1
Add a PHPUnit TestCase stub.
2019-10-02 14:36:54 +02:00
Dorian Villet
7d2b4dda4b
Add failing test for #1116 .
2019-10-02 12:33:48 +02:00
Dorian Villet
7a06337384
Add tests for #2056 .
2019-10-02 10:53:44 +02:00
Dorian Villet
ccc88b12dd
Add a dev dependency on psr/event-dispatcher to allow to run the complete-check on PHP 7.4. Otherwise getting this error :
...
PHP Fatal error: During class fetch: Uncaught ReflectionException: Class Psr\EventDispatcher\EventDispatcherInterface not found in rector/vendor/symfony/config/Resource/ClassExistenceResource.php:150
Stack trace:
0 [internal function]: Symfony\Component\Config\Resource\ClassExistenceResource::throwOnRequiredClass()
1 [internal function]: spl_autoload_call()
2 rector/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php(16): interface_exists()
3 rector/vendor/squizlabs/php_codesniffer/autoload.php(167): include('...')
4 rector/vendor/squizlabs/php_codesniffer/autoload.php(134): PHP_CodeSniffer\Autoload::loadFile()
5 [internal function]: PHP_CodeSniffer\Autoload::load()
6 rector/vendor/symfony/event-dispatcher/EventDispatcherInterface.php(23): spl_autoload_call()
7 rector/vendor/squizlabs/php_codesniffer/autoload.php(167): include('...')
8 rector/vendor/symfony/event-dispatcher/EventDispatcherInterface.php on line 23
2019-10-02 10:05:25 +02:00
Dorian Villet
360b7715a6
Updating docs with new Rectors.
2019-10-02 10:04:14 +02:00
Dorian Villet
7e170d5944
ECS fixes.
2019-10-02 09:54:01 +02:00
Agata
fa242fec31
Fixed third argument in VarDumperTestTrait.
2019-10-01 22:07:51 +02:00
Tomáš Votruba
f0222eaebf
Merge pull request #2065 from rectorphp/allow-private-ctor-override-for-static-factory
...
[CodingStyle] Allow private ctor override for static factory
2019-10-01 13:44:30 +02:00
Tomáš Votruba
b3c8d7f379
Merge pull request #2067 from markstory/cake4-rename-method
...
Use contextual method rename rector in cake4 rules.
2019-10-01 09:00:23 +02:00
Mark Story
8f7d50d9d7
Use contextual method rename rector in cake4 rules.
2019-09-30 21:44:39 -04:00
Tomas Votruba
4c3799adb3
[CodingStyle] Allow ctor override for PHP 7.2 in MakeInheritedMethodVisibilitySameAsParentRector
2019-09-30 16:57:00 +02:00
Tomáš Votruba
3191a615c8
Add conditional method renaming rector ( #2047 )
...
Add conditional method renaming rector
2019-09-30 09:22:06 +02:00
Tomáš Votruba
f2483db2f2
Add stubs instead of dump class replace in constructor ( #2062 )
...
Add stubs instead of dump class replace in constructor
2019-09-30 09:16:40 +02:00