We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3617153 commit a586d31Copy full SHA for a586d31
src/Cli.php
@@ -2,8 +2,8 @@
2
3
namespace BrainGames\Cli;
4
5
-use function Cli\line;
6
-use function Cli\prompt;
+use function cli\line;
+use function cli\prompt;
7
8
function sayGreeting(string $gameDescription = ''): string
9
{
@@ -21,7 +21,7 @@ function sayCongratulions(string $userName): void
21
line("Congratulations, $userName!");
22
}
23
24
-function sayUserLose(string $userAnswer, string $correctAnswer, string $userName): void
+function sayUserLose(mixed $userAnswer, string $correctAnswer, string $userName): void
25
26
line("'$userAnswer' is wrong answer ;(. Correct answer was '$correctAnswer'.");
27
line("Let's try again, $userName!");
0 commit comments