Skip to content

Commit 8bdd121

Browse files
committed
Add types to private and final methods.
1 parent 7b9496a commit 8bdd121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Constraints/FileValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ public function validate($value, Constraint $constraint)
199199
}
200200
}
201201

202-
private static function moreDecimalsThan($double, $numberOfDecimals)
202+
private static function moreDecimalsThan(string $double, int $numberOfDecimals): bool
203203
{
204-
return \strlen((string) $double) > \strlen(round($double, $numberOfDecimals));
204+
return \strlen($double) > \strlen(round($double, $numberOfDecimals));
205205
}
206206

207207
/**

0 commit comments

Comments
 (0)