minor #18031 [EventDispatcher] fix syntax error (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[EventDispatcher] fix syntax error

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18025
| License       | MIT
| Doc PR        |

Commits
-------

98cc980 [EventDispatcher] fix syntax error
This commit is contained in:
Fabien Potencier 2016-03-06 18:14:09 +01:00
commit a89154d0bb
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class RegisterListenersPass implements CompilerPassInterface
$class = $container->getParameterBag()->resolveValue($def->getClass());
$interface = 'Symfony\Component\EventDispatcher\EventSubscriberInterface';
if (!is_subclass_of($class, $interface))) {
if (!is_subclass_of($class, $interface)) {
throw new \InvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, $interface));
}