From 23742c22c3de65e8a9bae80b4cb94ce8381551ac Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 12 Feb 2023 11:41:20 +0100 Subject: [PATCH] suppress E_WARNING at tests with vfs:// --- src/Core/Logger/Type/StreamLogger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.39.5