Skip to content

Commit

Permalink
Update constantsTest.php
Browse files Browse the repository at this point in the history
GlazerMann authored Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c4b1d5d commit 4773513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/constantsTest.php
Original file line number Diff line number Diff line change
@@ -625,11 +625,11 @@ public function testDoubleMap(): void {
if ($mappedp === 's#cid') {
$mappedp = 's2cid';
}
if (!in_array($mapped, $okay_to_be_bad)) {
if (!in_array($mappedp, PARAMETER_LIST)) {
if (!in_array($mapped, $okay_to_be_bad, true)) {
if (!in_array($mappedp, PARAMETER_LIST, true)) {
$errors .= ' mapped to non-existant parameter: ' . $map_me . '/' . $mapped . ' ';
}
if (in_array($mappedp, DEAD_PARAMETERS) || in_array($mapped, DEAD_PARAMETERS)) {
if (in_array($mappedp, DEAD_PARAMETERS, true) || in_array($mapped, DEAD_PARAMETERS, true)) {
$errors .= ' mapped to dead parameter: ' . $map_me . '/' . $mapped . ' ';
}
}

0 comments on commit 4773513

Please sign in to comment.