fix(config): Suppress error at install time

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/48426/head
Josh 2 years ago committed by GitHub
parent 341b31b194
commit ce51cecb44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      lib/private/Config.php

@ -186,7 +186,8 @@ class Config {
@opcache_invalidate($file, false);
}
$filePointer = @fopen($file, 'r');
// suppressor doesn't work here at boot time since it'll go via our onError custom error handler
$filePointer = file_exists($file) ? @fopen($file, 'r') : false;
if ($filePointer === false) {
// e.g. wrong permissions are set
if ($file === $this->configFilePath) {

Loading…
Cancel
Save