|  | @@ -36,11 +36,11 @@ | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 36 | 36 |      public static function dispatchJson(string $event, $payload): array | 
                                                                                                            
                                                            | 37 | 37 |      { | 
                                                                                                            
                                                            | 38 | 38 |          if (\is_object($payload) && !$payload instanceof \JsonSerializable) { | 
                                                                                                            
                                                            | 39 |  | -            throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of '.\get_class($payload)); | 
                                                                                                            
                                                            |  | 39 | +            throw new \RuntimeException('Payload object should implement JsonSerializable. Got an instance of ' . \get_class($payload)); | 
                                                                                                            
                                                            | 40 | 40 |          } | 
                                                                                                            
                                                            | 41 | 41 |          $replies = self::dispatch($event, \GuzzleHttp\json_encode($payload)); | 
                                                                                                            
                                                            | 42 | 42 |   | 
                                                                                                            
                                                            | 43 |  | -        return \array_map(function (string $reply) { | 
                                                                                                            
                                                            |  | 43 | +        return \array_map(function(string $reply) { | 
                                                                                                            
                                                            | 44 | 44 |              return \GuzzleHttp\json_decode($reply, true); | 
                                                                                                            
                                                            | 45 | 45 |          }, $replies); | 
                                                                                                            
                                                            | 46 | 46 |      } | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.