Remove usage of @ operator

[MAILPOET-2357]
This commit is contained in:
Amine Ben hammou
2019-09-16 03:05:29 +01:00
committed by Jack Kitterhing
parent c5dbeff04f
commit d43ae6d350

View File

@@ -22,7 +22,9 @@ class MetadataCache extends CacheProvider {
function __construct($dir) {
$this->is_dev_mode = defined('WP_DEBUG') && WP_DEBUG && class_exists(SimpleAnnotationReader::class);
$this->directory = rtrim($dir, '/\\');
@mkdir($this->directory);
if (!file_exists($this->directory)) {
mkdir($this->directory);
}
}
protected function doFetch($id) {