php drupal-check.phar modules/contrib/vote_anon/
 6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ --------------------------------------------------- 
  Line   vote_anon.install                                  
 ------ --------------------------------------------------- 
  114    Call to deprecated function drupal_set_message().  
 ------ --------------------------------------------------- 

                                                                                                                        
 [ERROR] Found 1 error
CommentFileSizeAuthor
#2 deprecated-3074460-2.patch456 bytessergiu stici

Comments

Sergiu Stici created an issue. See original summary.

sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new456 bytes

Please review.

dkmishra’s picture

Hi @Sergiu Stici, thanks for the patch.

dkmishra’s picture

Assigned: Unassigned » dkmishra
Status: Needs review » Reviewed & tested by the community

I have validated this patch at version 8.x-1.2 and it is working fine.

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓:/var/www/html/drupal8test/modules/contrib/vote_anon$ patch -p1 < deprecated-3074460-2.patch
patching file vote_anon.install
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓:/var/www/html/drupal8test/modules/contrib/vote_anon$ drush en -y vote_anon
The following extensions will be enabled: vote_anon
Do you really want to continue? (y/n): y
vote_anon was enabled successfully.
dkmishra’s picture

@Sergiu Stici , the class should also be add as use Drupal\Core\Messenger\Messenger;, right?

sergiu stici’s picture

@Devendra Mishra Hi, You can read more information in this link: https://www.drupal.org/node/2774931.

dkmishra’s picture

Hi @Sergiu Stici, thanks for clarification.

dkmishra’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.