Skip to content

Commit

Permalink
fix bool support on PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingluscas committed Apr 16, 2017
1 parent 1c30f1c commit c3183aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/Freight.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ public function package($format)
/**
* Indique se a encomenda será entregue com o serviço adicional mão própria.
*
* @param bool $useOwnHand
* @param bool $useOwnHand
*
* @return self
*/
public function useOwnHand(bool $useOwnHand)
public function useOwnHand($useOwnHand)
{
$this->payload['sCdMaoPropria'] = $useOwnHand ? 'S' : 'N';
$this->payload['sCdMaoPropria'] = (bool) $useOwnHand ? 'S' : 'N';

return $this;
}
Expand Down

0 comments on commit c3183aa

Please sign in to comment.