}
}
- $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
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 http://php.net/manual/en/migration71.windows-support.php
+ // See https://secure.php.net/manual/en/migration71.windows-support.php
return 0;
} else {
return FileBackend::ATTR_UNICODE_PATHS;