- 🇯🇴Jordan Rajab Natshah Jordan
✅ Released google_analytics_reports-8.x-3.0 →
When running phpcs with the PHPCompatibility
standard for PHP 8.0 check, we get an error:
FILE: ...reports/google_analytics_reports_api/src/GoogleAnalyticsReportsApiFeed.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
218 | ERROR | "$this" can no longer be used in a plain function or method
| | since PHP 7.1.
--------------------------------------------------------------------------------
Checking the method that uses the $this
outside object context which is currentUrl()
, I've noted that method is not longer in use since 2019! See commit b9aa3ce1
Run phpcs with PHPCompatibility standards, as example:
phpcs --standard=PHPCompatibility \
--runtime-set testVersion "8.0-" \
-p \
--extensions=php,module,inc,install,test,profile,theme \
./modules/contrib/google_analytics_reports
And note the error.
I think we can safely remove that method currentUrl since is not longer in use and is throwing the PHP 8 compatibility error.
Fixed
3.0
API module
The issue particularly affects sites running on PHP version 8.0.0 or later.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
✅ Released google_analytics_reports-8.x-3.0 →