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...
35
2
}
36
37
/**
38
* @param string $name
39
* @param mixed $variable
40
*/
41
2
protected function dumpVariableToCache(string $name, $variable)
If you suppress an error, we recommend checking for the error condition explicitly: