File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ protected function checkForExclude(AnnotationCollection $annotations): bool
310310
311311 // @codingStandardsIgnoreStart
312312 $ results = $ this ->getEventManager ()->triggerEventUntil (
313- static fn (bool $ r ): bool => true === $ r ,
313+ static fn (? bool $ r ): bool => true === $ r ,
314314 $ event
315315 );
316316 // @codingStandardsIgnoreEnd
Original file line number Diff line number Diff line change 3030use LaminasTest \Form \TestAsset \Annotation \Form ;
3131use LaminasTest \Form \TestAsset \Annotation \InputFilter ;
3232use LaminasTest \Form \TestAsset \Annotation \InputFilterInput ;
33+ use PHPUnit \Framework \Attributes \DoesNotPerformAssertions ;
3334use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
3435use PHPUnit \Framework \TestCase ;
3536use Throwable ;
@@ -573,4 +574,17 @@ public function testLegacyStyleValidatorAnnotations(): void
573574 ErrorHandler::restoreErrorHandler ();
574575 }
575576 }
577+
578+ #[DoesNotPerformAssertions]
579+ public function testAllowsEventListenerReturnVoid (): void
580+ {
581+ $ entity = new TestAsset \Annotation \Entity ();
582+ $ builder = $ this ->createBuilder ();
583+
584+ $ builder ->getEventManager ()->attach ('* ' , function () {
585+ // return void;
586+ });
587+
588+ $ builder ->createForm ($ entity );
589+ }
576590}
You can’t perform that action at this time.
0 commit comments