X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2FFSFileBackend.php;h=b8aa951fd52fcfe7da3cb62e070db4e279548479;hp=d60e768f863e5210dc9760ae7bedd10dfa2609ca;hb=9cbb8f104d66b9b1a5497e12cd931a3827f6b5b3;hpb=e85682ed109e13432f8ee376e16eb89325f05373 diff --git a/includes/libs/filebackend/FSFileBackend.php b/includes/libs/filebackend/FSFileBackend.php index d60e768f86..b8aa951fd5 100644 --- a/includes/libs/filebackend/FSFileBackend.php +++ b/includes/libs/filebackend/FSFileBackend.php @@ -89,8 +89,8 @@ class FSFileBackend extends FileBackendStore { } } - $this->fileMode = isset( $config['fileMode'] ) ? $config['fileMode'] : 0644; - $this->dirMode = isset( $config['directoryMode'] ) ? $config['directoryMode'] : 0777; + $this->fileMode = $config['fileMode'] ?? 0644; + $this->dirMode = $config['directoryMode'] ?? 0777; if ( isset( $config['fileOwner'] ) && function_exists( 'posix_getuid' ) ) { $this->fileOwner = $config['fileOwner']; // cache this, assuming it doesn't change @@ -101,7 +101,7 @@ class FSFileBackend extends FileBackendStore { public function getFeatures() { if ( $this->isWindows && version_compare( PHP_VERSION, '7.1', 'lt' ) ) { // PHP before 7.1 used 8-bit code page for filesystem paths on Windows; - // See https://secure.php.net/manual/en/migration71.windows-support.php + // See https://www.php.net/manual/en/migration71.windows-support.php return 0; } else { return FileBackend::ATTR_UNICODE_PATHS; @@ -793,7 +793,7 @@ class FSFileBackend extends FileBackendStore { * @param int $errno * @param string $errstr * @return bool - * @access private + * @private */ public function handleWarning( $errno, $errstr ) { $this->logger->error( $errstr ); // more detailed error logging