Skip to content

Commit

Permalink
fix: testmode type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 21, 2025
1 parent d7bc64c commit fc8c68a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/EndpointCollection/MethodEndpointCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function allEnabled($query = [], bool $testmode = false): MethodCollectio
*
* @throws ApiException
*/
public function allActive($query = [], ?bool $testmode = null): MethodCollection
public function allActive($query = [], bool $testmode = false): MethodCollection
{
return $this->allEnabled($query, $testmode);
}
Expand Down
4 changes: 2 additions & 2 deletions src/EndpointCollection/PaymentEndpointCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public function delete(string $id, $data = []): ?Payment
* Will throw a ApiException if the payment id is invalid or the resource cannot be found.
* Returns with HTTP status No Content (204) if successful.
*
* @param array|bool $data
* @param array|bool $testmode
*
* @throws ApiException
*/
public function cancel(string $id, $data = []): ?Payment
public function cancel(string $id, $testmode = []): ?Payment
{
$testmode = Utility::extractBool($data, 'testmode', false);

Expand Down

0 comments on commit fc8c68a

Please sign in to comment.