Strict in_array check in Parser.php

Otherwise it doesn't throw an error for the cases when passed parameters array includes zero key.
[ExpressionLanguage] Test for the non-strict in_array check in parsePrimaryExpression in Parser.php
bug #10605 [ExpressionLanguage] Strict in_array check in Parser.php (parnas)

This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #10605).

Discussion
----------

[ExpressionLanguage] Strict in_array check in Parser.php

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Otherwise it doesn't throw an exception for the cases when passed parameters array includes zero key (and that will result in the PHP Notice down the road).

Commits
-------

154c4a5 [ExpressionLanguage] Test for the non-strict in_array check in parsePrimaryExpression in Parser.php
e465135 Strict in_array check in Parser.php