Skip to content

Commit 0a8ea75

Browse files
committed
added third paramet to array_search function in Progression.php
1 parent 2292938 commit 0a8ea75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Games/Progression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function generateQuestion(): string
3030
function getCorrectAnswer(string $question): string
3131
{
3232
$elements = explode(" ", $question);
33-
$hiddenIndex = (int)array_search("..", $elements);
33+
$hiddenIndex = (int)array_search("..", $elements,false);
3434
$len = count($elements);
3535

3636
if ($hiddenIndex !== 0 && $hiddenIndex !== $len - 1) {

0 commit comments

Comments
 (0)