Skip to content

Commit dc4c8d5

Browse files
authored
Merge pull request #6 from prhost/master
merge master to 5.0
2 parents 991d336 + f7ace49 commit dc4c8d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CepGratis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function search(string $cep, array $options = [], int $timeout = n
7777
* Performs provider CEP search.
7878
*
7979
* @param string $cep CEP
80-
* @return Contracts\Address
80+
* @return Address
8181
* @throws CepGratisInvalidParameterException
8282
* @throws CepGratisTimeoutException
8383
*/

src/Providers/ApiCepProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getAddress($cep, HttpClientContract $client, array $option = [])
2323
}
2424

2525
$address = '';
26-
if ($content->address) {
26+
if (property_exists($content, 'address') && $content->address) {
2727
$address = trim(explode('- até', $content->address)[0] ?? '');
2828
$address = trim(explode('- de', $address)[0] ?? '');
2929
}

0 commit comments

Comments
 (0)