@@ -20,28 +20,29 @@ final class RequestTagsHandler
2020 private array $ tagsError ;
2121
2222 /**
23- * @param array<string, list<mixed >> $tagsSuccess
24- * @param array<string, list<mixed >> $tagsError
23+ * @param array<string, list<string|array >> $tagsSuccess
24+ * @param array<string, list<string|array >> $tagsError
2525 */
2626 public function __construct (
2727 CallableFactory $ factory ,
2828 private Injector $ injector ,
2929 array $ tagsSuccess = [],
3030 array $ tagsError = [],
3131 ) {
32+ $ listenersSuccess = $ listenersError = [];
3233 foreach ($ tagsSuccess as $ tag => $ definitions ) {
3334 foreach ($ definitions as $ index => $ definition ) {
34- $ tagsSuccess [$ tag ][$ index ] = $ factory ->create ($ definition );
35+ $ listenersSuccess [$ tag ][$ index ] = $ factory ->create ($ definition );
3536 }
3637 }
3738 foreach ($ tagsError as $ tag => $ definitions ) {
3839 foreach ($ definitions as $ index => $ definition ) {
39- $ tagsError [$ tag ][$ index ] = $ factory ->create ($ definition );
40+ $ listenersError [$ tag ][$ index ] = $ factory ->create ($ definition );
4041 }
4142 }
4243
43- $ this ->tagsSuccess = $ tagsSuccess ;
44- $ this ->tagsError = $ tagsError ;
44+ $ this ->tagsSuccess = $ listenersSuccess ;
45+ $ this ->tagsError = $ listenersError ;
4546 }
4647
4748 public function handleSuccess (RequestSuccessEvent $ event ): void
0 commit comments