Add missing variables declaration.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-28 19:14:25 +02:00
parent eef5ee370d
commit 2bda002259
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ class Program {
'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1};
int $matches;
string $roman;
int $value;
foreach($lookup as $roman => $value) {
$matches = (int) ($n / $value);
$result += str_repeat($roman, $matches);