Skip to content

Commit 7d4f83e

Browse files
Merge branch '5.0'
* 5.0: (28 commits) [DoctrineBridge] Use new Types::* constants and support new json type Fix bad merge in README of Nexmo Notifier bridge [Debug][ErrorHandler] improved deprecation notices for methods new args and return type [BrowserKit] Nested file array prevents uploading file [ExpressionLanguage] Fixed collisions of character operators with object properties remove usage of already deleted Symfony\Component\EventDispatcher\Event [Notifier] Add correct tags for NullTransportFactory [Validator] Remove specific check for Valid targets [PhpUnitBridge] Use trait instead of extending deprecated class Fix versioned namespace clears fix remember me Use strict assertion in asset tests [DoctrineBridge][DoctrineExtractor] Fix indexBy with custom and some core types Do not rely on the current locale when dumping a Graphviz object fix typo [Ldap] force default network timeout [Config] don't throw on missing excluded paths Docs: Typo, grammar [Validator] Add the missing translations for the Polish ("pl") locale [PhpUnitBridge] Add compatibility to PHPUnit 9 #35662 ...
2 parents ec966bd + b45ad88 commit 7d4f83e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

DependencyInjection/RegisterListenersPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1818
use Symfony\Component\DependencyInjection\Reference;
19-
use Symfony\Component\EventDispatcher\Event as LegacyEvent;
2019
use Symfony\Component\EventDispatcher\EventDispatcher;
2120
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2221
use Symfony\Contracts\EventDispatcher\Event;
@@ -141,7 +140,6 @@ private function getEventFromTypeDeclaration(ContainerBuilder $container, string
141140
|| !($type = $m->getParameters()[0]->getType())
142141
|| $type->isBuiltin()
143142
|| Event::class === ($name = $type->getName())
144-
|| LegacyEvent::class === $name
145143
) {
146144
throw new InvalidArgumentException(sprintf('Service "%s" must define the "event" attribute on "%s" tags.', $id, $this->listenerTag));
147145
}

0 commit comments

Comments
 (0)