Skip to content

Commit

Permalink
chore: fix static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Apr 28, 2024
1 parent 816d512 commit 5d592cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
</DeprecatedMethod>
</file>
<file src="src/Util/UuidFormatter.php">
<DeprecatedMethod occurrences="5">
<DeprecatedMethod occurrences="3">
<code>getVariant</code>
<code>getVariant</code>
<code>getVersion</code>
<code>getVersion</code>
<code>getVersion</code>
</DeprecatedMethod>
</file>
</files>
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorLevel="1"
findUnusedPsalmSuppress="true"
findUnusedBaselineEntry="true"
findUnusedCode="false"
cacheDirectory="./build/cache/psalm"
errorBaseline="psalm-baseline.xml">

Expand Down
1 change: 1 addition & 0 deletions src/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
{
$uuids = [];

/** @psalm-suppress RedundantFlag */
$count = filter_var(
$input->getOption('count'),
FILTER_VALIDATE_INT,
Expand Down
2 changes: 1 addition & 1 deletion src/Util/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function handle(int $level, string $message, string $file, int $li
*/
public static function register(): void
{
/** @psalm-var callable(int, string, string, int):bool|null $callback */
/** @psalm-var callable(int, string, string=, int=, array<array-key, mixed>=):bool|null $callback */
$callback = [self::class, 'handle'];

set_error_handler($callback);
Expand Down

0 comments on commit 5d592cc

Please sign in to comment.