8/8 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------
Line src/Repository/CovidRepository.php
------ ----------------------------------------------------------------------
25 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
[ERROR] Found 1 error
------ ----------------------------------------------------------------------
Line src/Repository/CovidRepository.php
------ ----------------------------------------------------------------------
41 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
65 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
81 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | D9_Readiness_3124037-3.patch | 5.44 KB | abhijeet.kumar2107 |
| #2 | removed-deprecated-code.patch | 1.15 KB | sahana _n |
Comments
Comment #2
sahana _n commentedPlease review the patch.
Comment #3
abhijeet.kumar2107 commentedFixed latest deprecated code in latest patch. Please review
Comment #4
avpadernoIssue tags must be separated by commas, not spaces.
Comment #5
abhijeet.kumar2107 commentedThanks @kiamlaluno for valuable feedback and will keep in mind in the future.
Comment #6
nitesh624Comment #7
nitesh624Comment #8
kapil17 commentedHello @abhijeet.kumar2107
Just applied the patch and its throwing an error. when you are applying dependency injection please make sure the order of using service arguments in services.yml and constructor of the class should be same. I fixed that issue.
Thanks for the patch.
Comment #9
kapil17 commented