From 3e3e948e47e1fa556abc00266e6b5ca3f0a2f851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=C3=BCel=20van=20der=20Steege?= Date: Mon, 12 Aug 2024 15:46:31 +0200 Subject: [PATCH] Fix PHPStan issue. --- src/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser.php b/src/Parser.php index 5bb2248..81175e2 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -91,7 +91,7 @@ public function parse( $string ) { $full = sprintf( '-%s', $full ); // Remove minus from end of half. - $half = \substr( $half, 0, -1 ); + $half = \substr( (string) $half, 0, -1 ); } $string = $full . '.' . $half;