Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 971c415

Browse files
committed
Fixed the triggerEventUntil
1 parent a14820d commit 971c415

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Annotation/AnnotationManager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public function createAnnotation(array $annotationData)
9898
]);
9999

100100
$eventManager = $this->getEventManager();
101-
$results = $eventManager->triggerEvent($event, function ($r) {
101+
$results = $eventManager->triggerEventUntil(function ($r) {
102102
return (is_object($r));
103-
});
103+
}, $event);
104104

105105
$annotation = $results->last();
106106

test/Annotation/AnnotationManagerTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function testAllowsMultipleParsingStrategies()
2828
{
2929
$genericParser = new Annotation\Parser\GenericAnnotationParser();
3030
$genericParser->registerAnnotation(__NAMESPACE__ . '\TestAsset\Foo');
31-
3231
$doctrineParser = new Annotation\Parser\DoctrineAnnotationParser();
3332
$doctrineParser->registerAnnotation(__NAMESPACE__ . '\TestAsset\DoctrineAnnotation');
3433

0 commit comments

Comments
 (0)