Skip to content

Commit a586d31

Browse files
committed
Fix minor src/Cli.php, PHPStan warnings fixed
1 parent 3617153 commit a586d31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cli.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace BrainGames\Cli;
44

5-
use function Cli\line;
6-
use function Cli\prompt;
5+
use function cli\line;
6+
use function cli\prompt;
77

88
function sayGreeting(string $gameDescription = ''): string
99
{
@@ -21,7 +21,7 @@ function sayCongratulions(string $userName): void
2121
line("Congratulations, $userName!");
2222
}
2323

24-
function sayUserLose(string $userAnswer, string $correctAnswer, string $userName): void
24+
function sayUserLose(mixed $userAnswer, string $correctAnswer, string $userName): void
2525
{
2626
line("'$userAnswer' is wrong answer ;(. Correct answer was '$correctAnswer'.");
2727
line("Let's try again, $userName!");

0 commit comments

Comments
 (0)