From: Philipp Date: Sun, 12 Feb 2023 10:41:20 +0000 (+0100) Subject: suppress E_WARNING at tests with vfs:// X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23742c22c3de65e8a9bae80b4cb94ce8381551ac;p=friendica.git suppress E_WARNING at tests with vfs:// --- diff --git a/src/Core/Logger/Type/StreamLogger.php b/src/Core/Logger/Type/StreamLogger.php index 6e0f657978..6a90f2e120 100644 --- a/src/Core/Logger/Type/StreamLogger.php +++ b/src/Core/Logger/Type/StreamLogger.php @@ -92,7 +92,7 @@ class StreamLogger extends AbstractLogger implements IAmAStrategy $this->fileSystem = $fileSystem; $stream = $this->logfile ?? $config->get('system', 'logfile'); - if ((file_exists($stream) && !is_writable($stream)) || is_writable(basename($stream))) { + if ((@file_exists($stream) && !@is_writable($stream)) || @is_writable(basename($stream))) { throw new LoggerArgumentException(sprintf('%s is not a valid logfile', $stream)); }