15/15 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------
Line abtestui.module
------ ----------------------------------------------------------------------
61 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
72 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
83 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line modules/abtestui_google_analytics/abtestui_google_analytics.install
------ ----------------------------------------------------------------------
18 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/ABTestDeleteForm.php
------ ----------------------------------------------------------------------
101 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/ABTestForm.php
------ ----------------------------------------------------------------------
635 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
638 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
[ERROR] Found 7 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | abtestui-3075019-2.patch | 4 KB | rudranil29 |
Comments
Comment #2
rudranil29 commentedremove deprecated method
Comment #3
rudranil29 commentedComment #4
mhavelant commentedHi,
Thank you for the patch! The messenger service was added in Drupal 8.5 (See: Change record). If we want to replace deprecations regarding this, we also need to add a lower bound in the info.yml and composer.json of the module.
Comment #5
rudranil29 commentedhere i changed the info.yml for minimum system version.
Comment #6
pifagor commentedLook good
Comment #8
mhavelant commentedThank you, fixed in beta8.
Comment #9
pifagor commentedComment #10
pifagor commentedDear @mhavelant
It would be great to note the contribution to the module and work on issues by noting everyone present and thus giving credits
Thanks
Comment #11
mhavelant commented@pifagor sorry, I thought I checked the checkbox for everyone, but apparently D.org didn't think so.
Comment #12
pifagor commentedThanks
PS: https://www.drupal.org adds credits only to the patch author.