diff --git a/.phive/phars.xml b/.phive/phars.xml index faba1530..1f56b2bc 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,5 +1,5 @@ - - + + diff --git a/psalm-baseline.xml b/psalm-baseline.xml index a0e257af..e5544a4b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,2 +1,13 @@ - + + + + !$name + + + + + identity]]> + + + diff --git a/src/Command/PolicyCommand.php b/src/Command/PolicyCommand.php index c9a49ba1..39743da5 100644 --- a/src/Command/PolicyCommand.php +++ b/src/Command/PolicyCommand.php @@ -76,7 +76,7 @@ public function templateData(Arguments $arguments): array $data = parent::templateData($arguments); $name = $arguments->getArgument('name'); - if (empty($name)) { + if (!$name) { throw new RuntimeException('You must specify name of policy to create.'); }