Skip to content

Commit

Permalink
Merge pull request #114 from InspireCZ/master
Browse files Browse the repository at this point in the history
EventsExtension::optimizeListeners() - fix of invalid condition
  • Loading branch information
enumag authored Dec 5, 2017
2 parents ca3e8d2 + 77193df commit 57edd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Events/DI/EventsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private function optimizeListeners(DIContainerBuilder $builder)
// find all subclasses and register the listener to all the classes dispatching them
foreach ($builder->getDefinitions() as $def) {
$class = $def->getClass();
if (!empty($class)) {
if (!$class) {
continue; // ignore unresolved classes
}

Expand Down

0 comments on commit 57edd92

Please sign in to comment.