Skip to content
New issue

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

Fix of strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated #647

Closed
wants to merge 1 commit into from

Conversation

vovafeldman
Copy link
Contributor

[templates] [addon] [bug-fix] The expiration prop of a lifetime license is null, so strtotime() is throwing a PHP error for that case. Therefore, I moved the string generation logic into the if statement, ensuring the license is not lifetime and is associated with an active subscription.

…ense is `null`, so `strtotime()` is throwing a PHP error for that case. Therefore, moved the string generation logic into the `if` statement that also ensures the license is not lifetime and associated with an active subscription.
@vovafeldman
Copy link
Contributor Author

Closing as this one is duplicate 🤦‍♂️ #626

@vovafeldman vovafeldman deleted the feature/addons-lifetime-license-fix branch July 24, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant