Skip to content

Commit

Permalink
Remove unused vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 18, 2023
1 parent 8d349ce commit 051f940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/Payments/PaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function test_from_object() {
public function test_format_string() {
\add_filter(
'pronamic_pay_merge_tags',
function ( $merge_tags, $controller ) {
function ( $merge_tags ) {
$merge_tags[] = new MergeTag(
'zero',
function () {
Expand Down
6 changes: 4 additions & 2 deletions tests/src/Subscriptions/SubscriptionHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ public function test_calculate_next_payment_delivery_date_filter() {
// Filter.
\add_filter(
'pronamic_pay_subscription_next_payment_delivery_date',
function ( $next_payment_delivery_date, $subscription ) {
return new \Pronamic\WordPress\DateTime\DateTime( '1970-01-01' );
function ( $next_payment_delivery_date ) {
$next_payment_delivery_date = new \Pronamic\WordPress\DateTime\DateTime( '1970-01-01' );

return $next_payment_delivery_date;
},
10,
2
Expand Down

0 comments on commit 051f940

Please sign in to comment.