Skip to content

Commit

Permalink
Fix PHPStan issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Aug 12, 2024
1 parent 175ad84 commit 3e3e948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e3e948

Please sign in to comment.