Skip to content

Commit e6aa182

Browse files
committed
Fix isFilterBoolean method
1 parent f5cd8be commit e6aa182

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ApiPlatform/State/Base/Wrapper/BaseResourceWrapperProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,11 @@ protected function getFilterInteger(string $name): int
558558
*
559559
* @param string $name
560560
* @return bool
561-
* @throws ArrayKeyNotFoundException
562561
* @throws TypeInvalidException
563562
*/
564563
protected function isFilterBoolean(string $name): bool
565564
{
566-
return (bool) $this->getFilter($name);
565+
return $this->hasFilter($name);
567566
}
568567

569568
/**

0 commit comments

Comments
 (0)