Merge pull request #12829 from Quix0r/fixes/export-to-file-null
Fixed: DomainPatternBlocklist::exportToFile() must be of the type string, null givenpull/12832/head
commit
5acbcba5c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue