Problem/Motivation
Warning in the logs
Deprecated function: Creation of dynamic property Drupal\open_readspeaker\Plugin\Block\OpenReadspeakerBlock::$request is deprecated in Drupal\open_readspeaker\Plugin\Block\OpenReadspeakerBlock->__construct() (regel 53 van /app/web/modules/contrib/open_readspeaker/src/Plugin/Block/OpenReadspeakerBlock.php)
Steps to reproduce
Install un D10.1 with php8.2
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | open_readspeaker-php8.2-deprecations-3384235-2.patch | 555 bytes | feng-shui |
Issue fork open_readspeaker-3384235
Show commands
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
feng-shui commentedPatch attached to fix the deprecation.
Comment #6
sunlixThanks guys. I have rearranged the dependency injection to not have instantiation in the constructor.
But the initial patch had solved this too :)
Comment #8
mstrelan commentedThis was only committed to 2.x, should it be backported to 8.x-1.x?
Comment #9
wylbur commentedThere is another ticket open covering this for the 8.x-1.0 branch - which is the recommended version!
https://www.drupal.org/project/open_readspeaker/issues/3413732