| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | $directoryMatch = null; |
| 31 | 31 | $lockedDirectoryType = $this->mainConfig->getLockedDirectoryType(); |
| 32 | 32 | |
| 33 | 33 | if ($lockedDirectoryType === 'wordpress') { |
| 34 | - $directoryMatch = '\d{4}' . DIRECTORY_SEPARATOR . '\d{2}'; | |
| 34 | + $directoryMatch = '[0-9]{4}' . DIRECTORY_SEPARATOR . '[0-9]{2}'; | |
| 35 | 35 | } elseif ($lockedDirectoryType === 'custom') { |
| 36 | 36 | $directoryMatch = $this->mainConfig->getCustomLockedDirectories(); |
| 37 | 37 | } |
| 38 | 38 | |
| @@ -68,9 +68,9 @@ | ||
| 68 | 68 | |
| 69 | 69 | return ($dir !== null) ? $dir . static::PASSWORD_FILE_NAME : null; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - public function createPasswordFile(bool $createNew = false, ?string $dir = null): void | |
| 72 | + public function createPasswordFile(bool $createNew = false, string $dir = null): void | |
| 73 | 73 | { |
| 74 | 74 | $file = $this->getDefaultPasswordFileWithPath($dir); |
| 75 | 75 | |
| 76 | 76 | if ($file !== null && (file_exists($file) === false || $createNew)) { |