Skip to content

Commit

Permalink
Suppress psalm false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Nov 7, 2022
1 parent f732605 commit a4aa2af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/benchmark-throughput.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
$args = getopt('i:o:t:');
$if = $args['i'] ?? '/dev/zero';
$of = $args['o'] ?? '/dev/null';

/** @psalm-suppress RiskyCast */
$duration = (int) ($args['t'] ?? 30);

assert(is_string($if) && is_string($of));
Expand Down

0 comments on commit a4aa2af

Please sign in to comment.