Skip to content

Commit

Permalink
Merge pull request #176 from EasyPost/173-bug
Browse files Browse the repository at this point in the history
Add docstring for `refresh` function
  • Loading branch information
Justintime50 authored May 31, 2022
2 parents c57dea8 + c662d5a commit 25cb95e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/EasyPost/EasypostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ public function instanceUrl()
/**
* Refresh the object from the API.
*
* @param bool $beta Whether to use the beta endpoint (optional, default false)
* @return $this
* @throws \EasyPost\Error
*/
public function refresh($beta = false)
public function refresh(bool $beta = false)
{
$requestor = new Requestor($this->_apiKey);
$url = $this->instanceUrl();
Expand Down

0 comments on commit 25cb95e

Please sign in to comment.