Needs work
Project:
Google Analytics Counter
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Oct 2026 at 19:30 UTC
Updated:
11 Oct 2026 at 22:05 UTC
Jump to comment: Most recent
Since the module's 4.0 release many new features were added to PHP and Drupal core which could make the module's code more compact, maintainable without lots of boilerplate code such as hook classes, autowiring services, constructor property promotion, changing plugin annotations to PHP attributes etc.
Consider doing that for a new 4.1.x minor version (or a new major version if some BC break is needed for plugins) with raising the minimum core version to 11.3 or later.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
avattikondaComment #4
kaszarobertHm, right now /admin/config/system/google-analytics-counter/dashboard shows this due to
declare(strict_types=1)causing TypeError onnumber_format():Also, according to a similar issue on another project we cannot use Read-only properties as they could cause serialization issues on forms later until the minimum supported PHP is 8.4. And the mentioned minimum Drupal 11 should mean PHP 8.3 is the minimum version to be supported.
skip_procedural_hook_scan: trueoptions turns off every other hooks in *.views.inc, *.install not just in *.module AFAIK. That should be fixed.Since the many recent regression issues that were not caught during our manual code reviews please wait with working on this until proper test coverage is committed in #3628929: Better test coverage. Update: done, rebase the branch and please make sure no code is lost during rebase. The tests are checking everything the module does now so they should show if there are regressions immediately.