Skip to content

Commit

Permalink
Fix implicit nullables
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Dec 29, 2024
1 parent 018a3da commit 3fe31f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/GalettePaypal/Controllers/PaypalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public function form(Request $request, Response $response): Response
public function logs(
Request $request,
Response $response,
string $option = null,
string|int $value = null
?string $option = null,
string|int|null $value = null
): Response {
$paypal_history = new PaypalHistory($this->zdb, $this->login, $this->preferences);

Expand Down
2 changes: 1 addition & 1 deletion lib/GalettePaypal/PaypalHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PaypalHistory extends History
* @param Preferences $preferences Preferences
* @param ?HistoryList $filters Filtering
*/
public function __construct(Db $zdb, Login $login, Preferences $preferences, HistoryList $filters = null)
public function __construct(Db $zdb, Login $login, Preferences $preferences, ?HistoryList $filters = null)
{
$this->with_lists = false;
parent::__construct($zdb, $login, $preferences, $filters);
Expand Down

0 comments on commit 3fe31f3

Please sign in to comment.