Avoid possible TypeError Exception
@@ -223,6 +223,10 @@ class FileEngine extends CacheEngine
$path = $this->_File->getRealPath();
$this->_File = null;
+ if ($path === false) {
+ return false;
+ }
+
// phpcs:disable
return @unlink($path);
// phpcs:enable