src/Logging/LogInterpreter.php
private function mergeMessages(string $method): array
    {
        $messages = [];
        foreach ($this->readers as $reader) {
            $messages = array_merge($messages, $reader->{$method}());
        }

        return $messages;
    }
private function mergeMessages(string $method): array
    {
        $messages = [];
        foreach ($this->readers as $reader) {
            $messages = array_merge($messages, $reader->{$method}());
        }

        return $messages;
    }
private function mergeMessages ( string $ method ) : array { $ messages = [ ] ; foreach ( $ this -> readers as $ reader ) { $ messages = array_merge ( $ messages , $ reader -> { $ method } ( ) ) ; } return $ messages ; }
Flatten messages into a single collection
based on an accessor method.

@param $method

@return array
Flatten messages into a single collection based on an accessor method .