We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb3662 commit b8c0d9dCopy full SHA for b8c0d9d
1 file changed
src/Response/Abstracts/AbstractResponse.php
@@ -12,7 +12,6 @@
12
use ArrayAccess\RdapClient\Response\Traits\AllowedKeyDataTraits;
13
use function get_class;
14
use function is_array;
15
-use function is_string;
16
use function json_decode;
17
use function sprintf;
18
@@ -86,11 +85,11 @@ public function __construct(
86
85
private function assertResponse(string $responseJson): void
87
{
88
$decoded = json_decode($responseJson, true);
89
-
+
90
if (!is_array($decoded) ||
91
(!isset($decoded['objectClassName']) &&
92
- !isset($decoded['rdapConformance']) &&
93
- !isset($decoded['errorCode']))
+ !isset($decoded['rdapConformance']) &&
+ !isset($decoded['errorCode']))
94
) {
95
throw new InvalidDataTypeException(
96
'Response is not valid json content'
0 commit comments