mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 00:12:29 +02:00
make test Symfony back and forth compatible
This commit is contained in:
parent
f6cfcfa1d1
commit
4a3fee7223
@ -4,11 +4,13 @@ namespace Rector\Symfony\Tests\Rector\MethodCall\MakeDispatchFirstArgumentEventR
|
||||
|
||||
use Rector\Symfony\Tests\Rector\MethodCall\MakeDispatchFirstArgumentEventRector\Source\CustomEvent;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
class KeepStringEventConstant
|
||||
{
|
||||
public function run(EventDispatcher $eventDispatcher)
|
||||
{
|
||||
/** @var Event|CustomEvent $customEvent */
|
||||
$customEvent = new CustomEvent();
|
||||
$eventDispatcher->dispatch(CustomEvent::NAME, $customEvent);
|
||||
}
|
||||
@ -27,6 +29,7 @@ class KeepStringEventConstant
|
||||
{
|
||||
public function run(EventDispatcher $eventDispatcher)
|
||||
{
|
||||
/** @var Event|CustomEvent $customEvent */
|
||||
$customEvent = new CustomEvent();
|
||||
$eventDispatcher->dispatch($customEvent, CustomEvent::NAME);
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ parameters:
|
||||
php_version_features: '7.1'
|
||||
|
||||
services:
|
||||
Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: ~
|
||||
# Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: ~
|
||||
|
Loading…
x
Reference in New Issue
Block a user