mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
suppress E_WARNING at tests with vfs://
This commit is contained in:
parent
7895024e75
commit
23742c22c3
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue