src/Parser/Checker.php
public function setString($string = '')
    {
        try {
            Assert::string($string);
        } catch (InvalidArgumentException $e) {
            $this->string = '';
        }

        $this->string = $string;

        return $this;
    }
public function setString($string = '')
    {
        try {
            Assert::string($string);
        } catch (InvalidArgumentException $e) {
            $this->string = '';
        }

        $this->string = $string;

        return $this;
    }
public function setString ( $ string = '' ) { try { Assert :: string ( $ string ) ; } catch ( InvalidArgumentException $ e ) { $ this -> string = '' ; } $ this -> string = $ string ; return $ this ; }
Sets an empty string if the parameter has the wrong type.

@param string $string a string to check
Sets an empty string if the parameter has the wrong type .