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

Run tests on PHP 8.4 instead of PHP 8.3 #22667

Merged
merged 8 commits into from
Oct 22, 2024
Merged

Run tests on PHP 8.4 instead of PHP 8.3 #22667

merged 8 commits into from
Oct 22, 2024

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 10, 2024

Description:

This PR contains a couple of changes / fixes for PHP 8.4

  • Deprecations will be removed from error_reporting for PHP 8.4+
    This is required, as we are using a couple of vendor libraries, that are not compatible with PHP 8.4. Updating them is not possible as long as we support PHP < 8
  • Various changes to tests to ensure they also pass with PHP 8.4
  • Suppress deprecation notices where E_STRICT is used
  • Ensure javascript tracker proxy runs with display_errors = 0, to ensure no deprecation notices are printed within the javascript code

Last Test run with all test suites on PHP 8.4: https://github.com/matomo-org/matomo/actions/runs/11437068780?pr=22667

fixes #22471

Review

@sgiehl sgiehl force-pushed the php84 branch 9 times, most recently from c5970da to 5b4b94a Compare October 15, 2024 12:53
@sgiehl sgiehl added the c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. label Oct 15, 2024
@sgiehl sgiehl force-pushed the php84 branch 6 times, most recently from fb1c343 to 78a8547 Compare October 17, 2024 09:15
@sgiehl sgiehl force-pushed the php84 branch 3 times, most recently from e2f16b0 to f88d9fe Compare October 21, 2024 09:18
@sgiehl sgiehl changed the title [Temp] Run all tests on PHP 8.4 Run tests on PHP 8.4 instead of PHP 8.3 Oct 22, 2024
@sgiehl sgiehl added this to the 5.2.0 milestone Oct 22, 2024
@sgiehl sgiehl requested a review from a team October 22, 2024 07:47
@sgiehl sgiehl marked this pull request as ready for review October 22, 2024 07:55
core/bootstrap.php Outdated Show resolved Hide resolved
michalkleiner
michalkleiner previously approved these changes Oct 22, 2024
Co-authored-by: Michal Kleiner <michal@innocraft.com>
Co-authored-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
@sgiehl sgiehl merged commit 3573075 into 5.x-dev Oct 22, 2024
25 of 26 checks passed
@sgiehl sgiehl deleted the php84 branch October 22, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure Matomo is functional with PHP 8.4
3 participants