6123 Commits

Author SHA1 Message Date
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
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
Tomas Votruba
8c259c8d92 add stubs over mirror class names in tests 2019-09-30 09:12:25 +02:00
Mark Story
018edbe75b Update RenameMethodCallBasedOnParameterRector based on feedback 2019-09-28 22:56:51 -04:00
Mark Story
31c1bfbe70 Add conditional method renaming rector
We have a few renames in CakePHP that are parameter dependent. This
rector lets a method be renamed based on the first parameter value. I've
only supported string values as that is the current requirements.
2019-09-28 22:56:51 -04:00
Tomáš Votruba
1d510c0182
[PHP 7.1] Skip extra argument removal for parent static call (#2060)
[PHP 7.1] Skip extra argument removal for parent static call
2019-09-28 20:16:55 +02:00
Tomas Votruba
d02284040b [PHP 7.1] Skip extra argument removal for parent static call 2019-09-28 20:09:24 +02:00
Tomáš Votruba
a89b4df22c
[DoctrineCodeQuality] Initialize collectoins in constructor (#2054)
[DoctrineCodeQuality] Initialize collectoins in constructor
2019-09-28 20:04:12 +02:00
Tomas Votruba
2cfcd37427 make use of addStmtsToClassMethodIfNotThereYet() 2019-09-28 20:00:11 +02:00
Tomas Votruba
10bb5da273 decouple addStmtsToClassMethodIfNotThereYet() to ClassManipulator 2019-09-28 19:40:25 +02:00
Tomas Votruba
6fbdf5461a [DoctrineCodeQuality] Initialize collectoins in constructor 2019-09-28 16:02:19 +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
ad3dddfa2e add auto import names 2019-09-28 14:30:12 +02:00
Tomas Votruba
ed0e2ca0eb use setParameter() 2019-09-28 14:30:12 +02:00
Tomas Votruba
9ef3801b41 cleanup 2019-09-28 13:18:11 +02:00
Tomáš Votruba
8bc5ccf9c4
Merge pull request #2049 from jeroenherczeg/strict_array_search
Added StrictArraySearchRector - Issue #2009
2019-09-28 08:34:29 +02:00
Jeroen Herczeg
4b9120c952 Added StrictArraySearchRector - Issue #2009 2019-09-28 00:34:34 +02:00
Tomas Votruba
8a8b2b95fd fix link in README 2019-09-27 22:29:36 +02:00
Tomas Votruba
539e54bcb6 CHANGELOG: prepare for release of v0.5.13 v0.5.13 2019-09-27 22:24:07 +02:00
Tomáš Votruba
641ede1ee5
Merge pull request #2048 from rectorphp/allow-variosu-doc-format
Add support for various annotation formats
2019-09-27 22:16:21 +02:00
Tomas Votruba
1202ca2658 allow cs 2019-09-27 22:09:00 +02:00
Tomas Votruba
a1e9a529d6 make tags in-sensitivty 2019-09-27 22:01:57 +02:00
Tomas Votruba
c626a50d94 cleanup + allow various format of imported annotations 2019-09-27 21:45:25 +02:00
Tomáš Votruba
767dc05baf
Decouple annotation to own PhpDocNodeFactory to allow extension… (#2046)
Decouple annotation to own PhpDocNodeFactory to allow extension without change
2019-09-27 14:56:31 +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