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 3fcf425 commit 30369e5Copy full SHA for 30369e5
src/Picqer/Carriers/SendCloud/Query/FindOne.php
@@ -6,7 +6,11 @@ public function find($id)
6
{
7
$result = $this->connection()->get($this->url . '/' . urlencode($id));
8
9
+ if (!array_key_exists($this->namespaces['singular'], $result)) {
10
+ return null;
11
+ }
12
+
13
return new self($this->connection(), $result[$this->namespaces['singular']]);
14
}
15
-}
16
+}
0 commit comments