suppress E_WARNING at tests with vfs://

This commit is contained in:
Philipp 2023-02-12 11:41:20 +01:00
parent 7895024e75
commit 23742c22c3
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View 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));
}