ActiveRecord\Errors::__toString PHP Méthode

__toString() public méthode

This function is called implicitely if the object is casted to a string: echo $error; # "Name can't be blank\nState is the wrong length (should be 2 chars)"
public __toString ( ) : string
Résultat string
    public function __toString()
    {
        return implode("\n", $this->full_messages());
    }