public function parse(): int
    {
        // convert constants to ints
        $this->expression = $this->convertErrorConstants($this->expression);
        $this->expression = str_replace(
            [',', ' '],
            ['.', ''],
            $this->expression
        );

        return $this->compute($this->expression);
    }
public function parse(): int
    {
        // convert constants to ints
        $this->expression = $this->convertErrorConstants($this->expression);
        $this->expression = str_replace(
            [',', ' '],
            ['.', ''],
            $this->expression
        );

        return $this->compute($this->expression);
    }
public function parse ( ) : int { // convert constants to ints $ this -> expression = $ this -> convertErrorConstants ( $ this -> expression ) ; $ this -> expression = str_replace ( [ ',' , ' ' ] , [ '.' , '' ] , $ this -> expression ) ; return $ this -> compute ( $ this -> expression ) ; }
Parse and compute the error types expression

@return int the parsed expression
@throws \InvalidArgumentException
Parse and compute the error types expression