Issues reported by drupal-check

Created on 6 November 2023, over 1 year ago
Updated 23 January 2024, about 1 year ago

Problem/Motivation

Steps to reproduce

$ vendor/bin/drupal-check --drupal-root $CI_PROJECT_DIR/$_WEB_ROOT $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
  0/37 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
 37/37 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
 ------ ------------------------------------------------------------- 
  Line   message_ui.module                                            
 ------ ------------------------------------------------------------- 
  94     Variable $message_config in PHPDoc tag @var does not exist.  
 ------ ------------------------------------------------------------- 
 ------ ------------------------------------------------------------- 
  Line   modules/message_notify_ui/message_notify_ui.module           
 ------ ------------------------------------------------------------- 
  19     Variable $message_config in PHPDoc tag @var does not exist.  
 ------ ------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------------------------- 
  Line   modules/message_notify_ui/src/Form/MessageNotifyForm.php                                
 ------ ---------------------------------------------------------------------------------------- 
  173    Call to an undefined method                                                             
         Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormInterface::getDefinitions().  
  174    Call to an undefined method                                                             
         Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormInterface::createInstance().  
  197    Call to an undefined method                                                             
         Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormInterface::createInstance().  
  209    Call to an undefined method                                                             
         Drupal\message_notify_ui\MessageNotifyUiSenderSettingsFormInterface::createInstance().  
 ------ ---------------------------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------------------------------------- 
  Line   src/Form/MessageForm.php                                                                            
 ------ ---------------------------------------------------------------------------------------------------- 
  82     Call to an undefined method                                                                         
         Drupal\Core\Entity\EntityInterface::getText().                                                      
  223    PHPDoc tag @var for variable $message contains unknown class                                        
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  228    Call to method setOwnerId() on an unknown class                                                     
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  236    Call to method getArguments() on an unknown class                                                   
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  258    Call to an undefined method                                                                         
         Drupal\Core\Entity\ContentEntityInterface|Drupal\Core\Entity\RevisionLogInterface::setArguments().  
  266    PHPDoc tag @var for variable $message contains unknown class                                        
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  267    Call to method isNew() on an unknown class                                                          
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  269    Call to method save() on an unknown class                                                           
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  272    Call to method toLink() on an unknown class                                                         
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  274    Call to method getTemplate() on an unknown class                                                    
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  275    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  279    Call to method getEntityType() on an unknown class                                                  
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  280    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  294    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  295    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  296    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  297    Call to method access() on an unknown class                                                         
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
  298    Call to method id() on an unknown class                                                             
         Drupal\message_ui\Form\Message.                                                                     
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                                 
 ------ ---------------------------------------------------------------------------------------------------- 
 ------ --------------------------------------------------------------------- 
  Line   src/MessageUiViewsContextualLinksBase.php                            
 ------ --------------------------------------------------------------------- 
  24     Method                                                               
         Drupal\message_ui\MessageUiViewsContextualLinksBase::setMessage()    
         should return                                                        
         Drupal\message_ui\MessageUiViewsContextualLinksInterface but return  
         statement is missing.                                                
 ------ --------------------------------------------------------------------- 
 ------ --------------------------------------------------------------- 
  Line   src/Plugin/QueueWorker/MessageArgumentsWorker.php              
 ------ --------------------------------------------------------------- 
  68     Variable $message_template in PHPDoc tag @var does not exist.  
 ------ --------------------------------------------------------------- 
 ------ --------------------------------------------------------------------------------------------- 
  Line   tests/src/Functional/MessageUiMassiveHardCodedArgumentsTest.php                              
 ------ --------------------------------------------------------------------------------------------- 
  19     Property                                                                                     
         Drupal\Tests\message_ui\Functional\MessageUiMassiveHardCodedArgumentsTest::$messageTemplate  
         has unknown class Drupal\message\Entity\MessageTemplateInterface as                          
         its type.                                                                                    
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                          
  67     Cannot access property $data on bool|object.                                                 
  76     Call to method id() on an unknown class                                                      
         Drupal\message\Entity\MessageTemplateInterface.                                              
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                          
  92     Cannot access property $data on bool|object.                                                 
 ------ --------------------------------------------------------------------------------------------- 
 [ERROR] Found 30 errors   

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024