Closed (won't fix)
Project:
Poll
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2026 at 16:00 UTC
Updated:
6 Apr 2026 at 11:58 UTC
Jump to comment: Most recent
Running Poll on a Drupal site using PHP 8.4 throws sever deprecated code notices:
Deprecated: Drupal\poll\PollStorage::cancelVote(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/code/modules/contrib/poll/src/PollStorage.php on line 54
Deprecated: Drupal\poll\PollStorageInterface::cancelVote(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/code/modules/contrib/poll/src/PollStorageInterface.php on line 40Install Poll 1.6 on a Drupal site running PHP 8.4. Run a CLI command like drush cr to see deprecations.
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 #3
dhansen commentedComment #4
bramdriesenThanks for the merge request @dhansen. This also needs to be checked on the 2.x branch
Comment #5
bramdriesenComment #6
ivnishComment #7
ivnishI checked it. Already fixed in 2.0.x-dev