Fix various phpstan errors.

This commit is contained in:
James Cole
2023-11-01 18:45:15 +01:00
parent 4ee3c7d83e
commit 3b4b074bae
14 changed files with 49 additions and 66 deletions

View File

@@ -268,7 +268,7 @@ class ExportData extends Command
private function getExportDirectory(): string
{
$directory = (string)$this->option('export_directory');
if (null === $directory) {
if ('' === $directory) {
$directory = './';
}
if (!is_writable($directory)) {