Skip to content

Commit

Permalink
force return of a string
Browse files Browse the repository at this point in the history
  • Loading branch information
gbxyz committed Mar 1, 2024
1 parent a4181ac commit c81081a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions RDAP/RootServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -102,6 +102,6 @@ protected function help() : string {
'rel' => 'related',
]],
]]
]);
]));
}
}
4 changes: 2 additions & 2 deletions RDAP/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -321,6 +321,6 @@ protected function help() : string {
'rel' => 'related',
]],
]]
]);
]));
}
}
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ parameters:
scanDirectories:
- vendor
cognitive_complexity:
class: 35
class: 45
function: 15

0 comments on commit c81081a

Please sign in to comment.