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...
25
}
26
8
parent::__construct($message, $code, $previous);
27
8
}
28
29
8
public static function documentNotFound(string $className, $identifier) : self
30
{
31
8
return new self(sprintf(
32
8
'The "%s" document with identifier %s could not be found.',
If you suppress an error, we recommend checking for the error condition explicitly: