Args::exists → Args::defined
This commit is contained in:
@@ -53,11 +53,11 @@ class Auto implements Command {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($args->exists("server")) {
|
||||
if ($args->defined("server")) {
|
||||
$config["server"] = $args->get("server");
|
||||
}
|
||||
|
||||
if ($args->exists("storage")) {
|
||||
if ($args->defined("storage")) {
|
||||
$config["storage"] = $args->get("storage");
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class Check implements Command {
|
||||
$this->climate->br();
|
||||
$this->climate->whisper(" Certificate is valid until " . date("d.m.Y", $cert->getValidTo()))->br();
|
||||
|
||||
if ($args->exists("names")) {
|
||||
if ($args->defined("names")) {
|
||||
$names = array_map("trim", explode(",", $args->get("names")));
|
||||
$missingNames = array_diff($names, $cert->getNames());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user