ActiveRecord\Errors::__toString PHP Method

__toString() public method

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
return string
    public function __toString()
    {
        return implode("\n", $this->full_messages());
    }