protected function createError(string $expectation, $value = null): Error
    {
        if ($value !== null) {
            $error = new Error('expected: %s found: %s', 1328557141, [$expectation, $this->renderValue($value)],
                'Validation Error');
        } else {
            $error = new Error($expectation, 1328557141, [], 'Validation Error');
        }
        return $error;
    }
protected function createError(string $expectation, $value = null): Error
    {
        if ($value !== null) {
            $error = new Error('expected: %s found: %s', 1328557141, [$expectation, $this->renderValue($value)],
                'Validation Error');
        } else {
            $error = new Error($expectation, 1328557141, [], 'Validation Error');
        }
        return $error;
    }
protected function createError ( string $ expectation , $ value = null ) : Error { if ( $ value !== null ) { $ error = new Error ( 'expected: %s found: %s' , 1328557141 , [ $ expectation , $ this -> renderValue ( $ value ) ] , 'Validation Error' ) ; } else { $ error = new Error ( $ expectation , 1328557141 , [ ] , 'Validation Error' ) ; } return $ error ; }
Create Error Object

@param string $expectation
@param mixed $value
@return Error
Create Error Object