php drupal-check.phar modules/contrib/open_readspeaker/
3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------
Line src/Plugin/Block/OpenReadspeakerBlock.php
------ ---------------------------------------------------
121 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
[ERROR] Found 1 error | Comment | File | Size | Author |
|---|---|---|---|
| #5 | deprecated-3090082-5.patch | 1.2 KB | sunlix |
| #2 | deprecated-3090082-2.patch | 807 bytes | sergiu stici |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
sunlix@Sergiu Stici
Thank you for reporting and providing the patch.
I think as of the current coding style guidelines we should switch to shorthand array syntax.
Switch from
array()to[]I think multi-line array for placeholder are a little bit handier to read.
Comment #4
sunlix@Sergiu Stici
the l() function on this line is also deprecated due to change record: https://www.drupal.org/node/2346779
Comment #5
sunlixComment #7
sunlixComment #8
sunlix