Skip to content

Commit 89163b6

Browse files
author
Munir Khakhi
committed
Allow falsy value in query param
1 parent fe8c119 commit 89163b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ApiBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ protected function processQueryMappings($arguments, $api, $uri): string
457457
{
458458
$query = [];
459459
foreach (array_get($api, 'mappings.query', []) as $key => $value) {
460-
if (array_get($arguments[0], $value)) {
460+
if (array_get($arguments[0], $value) !== null) {
461461
$query[$key] = array_get($arguments[0], $value, '');
462462
}
463463
}

0 commit comments

Comments
 (0)