We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce7869d commit a64bec1Copy full SHA for a64bec1
resources/lib/UnityHTTPD.php
@@ -242,11 +242,11 @@ public static function getPostData(string $key): string
242
return $_POST[$key];
243
}
244
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
+ /* returns null if not found and not $die_if_not_found */
+ public static function getQueryParameter(string $key, bool $die_if_not_found = true): ?string
247
{
248
if (!array_key_exists($key, $_GET)) {
249
- if ($throw_if_not_found) {
+ if ($die_if_not_found) {
250
self::badRequest("\$_GET has no array key '$key'");
251
} else {
252
return null;
0 commit comments