diff --git a/src/GameServerQuery/Filter/AbstractFilter.php b/src/GameServerQuery/Filter/AbstractFilter.php index 27c8e52..d5dc41d 100644 --- a/src/GameServerQuery/Filter/AbstractFilter.php +++ b/src/GameServerQuery/Filter/AbstractFilter.php @@ -67,8 +67,8 @@ public function apply(): array if ($this->protocols) { /** @var ProtocolInterface $serverProtocol */ $serverProtocol = $this->response[Result::GENERAL_CATEGORY][Result::GENERAL_APPLICATION_SUBCATEGORY]; - $supportedProtocols = \array_filter($this->protocols, static function($protocol) use ($serverProtocol) { - return \is_subclass_of($serverProtocol, $protocol) || \is_a($serverProtocol, $protocol); + $supportedProtocols = \array_filter($this->protocols, static function(string $protocol) use ($serverProtocol) { + return \is_subclass_of($serverProtocol, $protocol) || \is_a($serverProtocol, $protocol, true); }); if (!\count($supportedProtocols)) {