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 warning about deprecated ability #2333

Closed
wants to merge 1 commit into from

Conversation

pattihis
Copy link
Contributor

@pattihis pattihis commented Dec 22, 2024

🎫 Ticket

TEC-5086

πŸ—’οΈ Description

As explained by one of our users here, our Tribe__PUE__Checker::get_installed_version() function was returning null because it was looking for event-aggregator/event-aggregator.php. EA is not standalone plugin, it comes bundled with TEC. Passing null to version_compare() in PHP >8.1 caused this warning:

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in ..\the-events-calendar\common\src\Tribe\PUE\Checker.php on line 1710

The fix is to pass an empty string in this case.

πŸŽ₯ Artifacts

Screenshot_1

βœ”οΈ Checklist

  • Ran npm run changelog to add changelog file(s). More info here
  • Code is covered by NEW wpunit or integration tests.
  • Code is covered by EXISTING wpunit or integration tests.
  • Are all the required tests passing?
  • Automated code review comments are addressed.
  • Have you added Artifacts?
  • Check the base branch for your PR.
  • Add your PR to the project board for the release.

@pattihis pattihis self-assigned this Dec 22, 2024
@pattihis pattihis changed the base branch from master to release/T24.imp December 22, 2024 22:20
@pattihis pattihis added the code review Status: requires a code review. label Dec 22, 2024
@pattihis pattihis changed the title Fix warning about depreacated ability Fix warning about deprecated ability Dec 30, 2024
@Camwyn Camwyn deleted the branch release/T24.imp December 30, 2024 17:15
@Camwyn Camwyn closed this Dec 30, 2024
@Camwyn Camwyn mentioned this pull request Dec 30, 2024
8 tasks
@Camwyn
Copy link
Member

Camwyn commented Dec 30, 2024

Closed due to branch renaming
#2334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code review Status: requires a code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants