]> git.mxchange.org Git - friendica.git/commitdiff
suppress E_WARNING at tests with vfs://
authorPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 10:41:20 +0000 (11:41 +0100)
committerPhilipp <admin@philipp.info>
Sun, 12 Feb 2023 10:41:20 +0000 (11:41 +0100)
src/Core/Logger/Type/StreamLogger.php

index 6e0f6579786182a793ed593abce64f1af4dd1ce0..6a90f2e12046d3ab330c72bb67b2294ed2913849 100644 (file)
@@ -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));
                }