Skip to content

Commit

Permalink
stan update (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal authored Jan 21, 2024
1 parent fa65f54 commit b0b9b12
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="1.10.22" installed="1.10.22" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.13.1" installed="5.13.1" location="./tools/psalm" copy="false"/>
<phar name="phpstan" version="1.10.56" installed="1.10.56" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.20.0" installed="5.20.0" location="./tools/psalm" copy="false"/>
</phive>
13 changes: 12 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.x-dev@"/>
<files psalm-version="5.20.0@3f284e96c9d9be6fe6b15c79416e1d1903dcfef4">
<file src="src/Command/PolicyCommand.php">
<RiskyTruthyFalsyComparison>
<code>!$name</code>
</RiskyTruthyFalsyComparison>
</file>
<file src="src/IdentityDecorator.php">
<RiskyTruthyFalsyComparison>
<code><![CDATA[$this->identity]]></code>
</RiskyTruthyFalsyComparison>
</file>
</files>
2 changes: 1 addition & 1 deletion src/Command/PolicyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit b0b9b12

Please sign in to comment.