Skip to content

Commit

Permalink
Merge 370f1c1 into 4b1b3ce
Browse files Browse the repository at this point in the history
  • Loading branch information
nanobash committed Jul 19, 2023
2 parents 4b1b3ce + 370f1c1 commit f363404
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ Security - in case of vulnerabilities.

_TBD_

## [2.24.0] 2023-07-19

### Fixed

- [x] Fix `InvoiceService::issue` method signature (make `issuedTime` parameter nullable)
- [x] Fix `InvoiceService::search` method PHPDoc block

## [2.23.0] 2023-07-04

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions src/Services/InvoiceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function paginator($params = [])
/**
* @param array|ArrayObject $params
*
* @return Invoice[]|Collection
* @return Invoice[]
*/
public function search($params = [])
{
Expand Down Expand Up @@ -112,12 +112,12 @@ public function abandon($invoiceId)

/**
* @param string $invoiceId
* @param string $issuedTime
* @param string|null $issuedTime
* @param string|null $dueTime
*
* @return Invoice
*/
public function issue($invoiceId, $issuedTime, $dueTime = null)
public function issue($invoiceId, $issuedTime = null, $dueTime = null)
{
return $this->client()->post(
[
Expand Down

0 comments on commit f363404

Please sign in to comment.