Use strict type hinting in all tests.
All checks were successful
The build was successful.

This commit is contained in:
2018-09-14 21:32:08 +02:00
parent 8b48786f29
commit ca00cadba7
5 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
class Program {
private function num2Roman($num) {
private function num2Roman(int $num) {
$n = intval($num);
$result = '';
$lookup = array('M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400,