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 d586936 commit 935806dCopy full SHA for 935806d
src/Games/Progression.php
@@ -30,7 +30,7 @@ function generateQuestion(): string
30
function getCorrectAnswer(string $question): string
31
{
32
$elements = explode(" ", $question);
33
- $hiddenIndex = (int)array_search("..", $elements, false);
+ $hiddenIndex = (int)array_search("..", $elements, true);
34
$len = count($elements);
35
36
if ($hiddenIndex !== 0 && $hiddenIndex !== $len - 1) {
0 commit comments