Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ public function get(): array
}

/**
* @return Company
* @return Company|null
* @throws Exceptions\LimitExceeded
* @throws Exceptions\RequestFailed
* @throws Exceptions\ResponseFailed
*/
public function first(): Company
public function first(): ?Company
{
$results = Http::call($this->cifs);
return new Company(new Parser($results[0]));
return $results[0] ? new Company(new Parser($results[0])) : null;
}
}