Merge pull request #12829 from Quix0r/fixes/export-to-file-null

Fixed: DomainPatternBlocklist::exportToFile() must be of the type string, null given
This commit is contained in:
Hypolite Petovan 2023-02-21 09:13:19 -05:00 committed by GitHub
commit 5acbcba5c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,11 @@ HELP;
{
$filename = $this->getArgument(1);
if (empty($filename)) {
$this->out('A file name is required, e.g. ./bin/console serverblock export backup.csv');
return 1;
}
$this->blocklist->exportToFile($filename);
// Success