From a4aa2af367f655188b3924a403ee9748098f23d0 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Mon, 7 Nov 2022 22:02:34 +0100 Subject: [PATCH] Suppress psalm false positive --- examples/benchmark-throughput.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/benchmark-throughput.php b/examples/benchmark-throughput.php index 640c58f..5461d19 100644 --- a/examples/benchmark-throughput.php +++ b/examples/benchmark-throughput.php @@ -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));