src/Adapter/AdapterChain.php
public function getMessages()
    {
        $results  = $this->getResults();
        $messages = [];

        foreach ($results as $result) {
            /** @noinspection SlowArrayOperationsInLoopInspection */
            $messages = array_replace_recursive($messages, $result->getMessages());
        }

        return $messages;
    }
public function getMessages()
    {
        $results  = $this->getResults();
        $messages = [];

        foreach ($results as $result) {
            /** @noinspection SlowArrayOperationsInLoopInspection */
            $messages = array_replace_recursive($messages, $result->getMessages());
        }

        return $messages;
    }
public function getMessages ( ) { $ results = $ this -> getResults ( ) ; $ messages = [ ] ; foreach ( $ results as $ result ) { /** @noinspection SlowArrayOperationsInLoopInspection */ $ messages = array_replace_recursive ( $ messages , $ result -> getMessages ( ) ) ; } return $ messages ; }
Returns array of validation failure messages.

@return array
Returns array of validation failure messages .