Skip to content

Commit

Permalink
fix for php 7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gutocf committed May 29, 2022
1 parent 23156d0 commit f06fe89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/V1/IbgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public function getAllStates(): array
/**
* Gets information about a state by its initials.
*
* @param int|string $code Code or initials of the state
* @param mixed $code Code or initials of the state
* @throws \Gutocf\BrasilAPI\Exception\InternalServerErrorException
* @throws \Gutocf\BrasilAPI\Exception\NotFoundException
* @return \Gutocf\BrasilAPI\Entity\V1\Ibge\State
*/
public function getState(int|string $code): State
public function getState($code): State
{
$path = sprintf('/api/ibge/uf/v1/%s', $code);
$data = $this->adapter->get($path);
Expand Down

0 comments on commit f06fe89

Please sign in to comment.