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...
17
'The '.__NAMESPACE__.'\Translatable class is deprecated since version 2.1 and will be removed in 3.0.'.
18
'Use the '.__NAMESPACE__.'\TranslatableTrait class instead.',
19
E_USER_DEPRECATED
20
);
21
22
/**
23
* If you don't want to use trait, you can extend AbstractTranslatable instead.
If you suppress an error, we recommend checking for the error condition explicitly: