Skip to content

Commit

Permalink
Suppress psalm's possibly undefined array key error in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Oct 10, 2022
1 parent ce76c67 commit a62aad8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function ensure_server_version_at_least(string $version, Client $client) : void
return;
}

/** @psalm-suppress PossiblyUndefinedArrayOffset */
requirement_exit('Tarantool version >= %s is required to run "%s"', $version, $_SERVER['SCRIPT_FILENAME']);
}

Expand All @@ -51,6 +52,7 @@ function ensure_extension(string $name) : void
return;
}

/** @psalm-suppress PossiblyUndefinedArrayOffset */
requirement_exit('PHP extension "%s" is required to run "%s"', $name, $_SERVER['SCRIPT_FILENAME']);
}

Expand Down

0 comments on commit a62aad8

Please sign in to comment.