Skip to content

Commit a64bec1

Browse files
committed
rename argument
1 parent ce7869d commit a64bec1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/lib/UnityHTTPD.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ public static function getPostData(string $key): string
242242
return $_POST[$key];
243243
}
244244

245-
/* 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
245+
/* returns null if not found and not $die_if_not_found */
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)