It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.
If you suppress an error, we recommend checking for the error condition explicitly:
// For example instead of@mkdir($dir);// Better useif(@mkdir($dir)===false){thrownew\RuntimeException('The directory '.$dir.' could not be created.');}
Loading history...
34
$this->_dom->encoding = 'utf-8';
35
$this->_xpath = new Driver_Simple_Xpath($this->_dom);
It seems like new \Openbuildings\Spide...mple_Xpath($this->_dom) of type object<Openbuildings\Spi...ng\Driver_Simple_Xpath> is incompatible with the declared type object<Openbuildings\Spiderling\DOMXpath> of property $_xpath.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
36
$this->_forms = new Driver_Simple_Forms($this->_xpath);
If you suppress an error, we recommend checking for the error condition explicitly: