From d43ae6d35090f85ba134bb06bb29d93d35d68c50 Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Mon, 16 Sep 2019 03:05:29 +0100 Subject: [PATCH] Remove usage of @ operator [MAILPOET-2357] --- lib/Doctrine/MetadataCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/MetadataCache.php b/lib/Doctrine/MetadataCache.php index 8b22ccae75..84bddd62f0 100644 --- a/lib/Doctrine/MetadataCache.php +++ b/lib/Doctrine/MetadataCache.php @@ -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) {