diff --git a/RDAP/RootServer.php b/RDAP/RootServer.php index e7dd7e9..8bcae39 100644 --- a/RDAP/RootServer.php +++ b/RDAP/RootServer.php @@ -88,7 +88,7 @@ private function registrars() : ?string { } protected function help() : string { - return json_encode([ + return strval(json_encode([ 'rdapConformance' => ['rdap_level_0'], 'notices' => [[ 'title' => 'About this service', @@ -102,6 +102,6 @@ protected function help() : string { 'rel' => 'related', ]], ]] - ]); + ])); } } diff --git a/RDAP/Server.php b/RDAP/Server.php index b6b9702..f5b1054 100644 --- a/RDAP/Server.php +++ b/RDAP/Server.php @@ -306,7 +306,7 @@ private function isBlocked(IP $ip) : bool { } protected function help() : string { - return json_encode([ + return strval(json_encode([ 'rdapConformance' => ['rdap_level_0'], 'notices' => [[ 'title' => 'About this service', @@ -321,6 +321,6 @@ protected function help() : string { 'rel' => 'related', ]], ]] - ]); + ])); } } diff --git a/phpstan.neon b/phpstan.neon index d45598f..cf90d9d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,5 +10,5 @@ parameters: scanDirectories: - vendor cognitive_complexity: - class: 35 + class: 45 function: 15