We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp-pay-core/src/Subscriptions/SubscriptionPhase.php
Lines 293 to 312 in bd197f4
The next payment date can go far beyond the end date of a subscription phase.
Should we add something like this?
if ( null !== $this->end_date ) { $next_date = \min( $next_date, $this->end_date ); }
Probably also rename the variable $next_date to $anchor_date or $pointer_date?
$next_date
$anchor_date
$pointer_date
CC @rvdsteege
The text was updated successfully, but these errors were encountered:
As discussed at HQ, I think that that would be correct to fix the calculation.
Sorry, something went wrong.
No branches or pull requests
wp-pay-core/src/Subscriptions/SubscriptionPhase.php
Lines 293 to 312 in bd197f4
The next payment date can go far beyond the end date of a subscription phase.
Should we add something like this?
Probably also rename the variable
$next_date
to$anchor_date
or$pointer_date
?CC @rvdsteege
The text was updated successfully, but these errors were encountered: