Skip to content

Commit 0fd26af

Browse files
committed
rename argument
1 parent ce7869d commit 0fd26af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/lib/UnityHTTPD.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ public static function getPostData(string $key): string
243243
}
244244

245245
/* returns null if not found and not $throw_if_not_found */
246-
public static function getQueryParameter(string $key, bool $throw_if_not_found = true): ?string
246+
public static function getQueryParameter(string $key, bool $die_if_not_found = true): ?string
247247
{
248248
if (!array_key_exists($key, $_GET)) {
249-
if ($throw_if_not_found) {
249+
if ($die_if_not_found) {
250250
self::badRequest("\$_GET has no array key '$key'");
251251
} else {
252252
return null;

0 commit comments

Comments
 (0)