@AltamashShaikh opened this Issue on October 28th 2021 Contributor

Due to stable sorting in PHP 8, the result order seems to change when hitting same API on different PHP versions.

Expected Behavior

The output order should be same across all the versions

Current Behavior

The output differs for different PHP versions

Possible Solution

Changing the below code to renturn '-1' instead of '0'

Steps to Reproduce (for Bugs)

If you have FormAnalytics plugin installed you can try executing the system test cases in PHP8 and the output will differ for you from PHP7.


Trying to add PHP8 in travis build for FormAnalytics plugin and the build is failing due to this

Your Environment

  • Matomo Version:
  • PHP Version:
  • Server Operating System:
  • Additionally installed plugins:
  • Browser:
  • Operating System:
This Issue was closed on November 9th 2021
Powered by GitHub Issue Mirror