Issues reported by drupal-check

Created on 28 October 2023, 8 months ago
Updated 16 March 2024, 4 months 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/75 [โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘]   0%
 75/75 [โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“] 100%
 ------ --------------------------------------------------- 
  Line   modules/crm_case/crm_case.module                   
 ------ --------------------------------------------------- 
  68     Call to an undefined method                        
         Drupal\Core\Entity\EntityInterface::setOwnerId().  
 ------ --------------------------------------------------- 
 ------ --------------------------------------------------------- 
  Line   modules/crm_case/src/Entity/CrmCase.php                  
 ------ --------------------------------------------------------- 
  91     Call to an undefined method                              
         Drupal\Core\Field\FieldDefinitionInterface::setLabel().  
 ------ --------------------------------------------------------- 
 ------ ----------------------------------------------- 
  Line   modules/crm_case/src/Form/CrmCaseTypeForm.php  
 ------ ----------------------------------------------- 
  64     Call to an undefined method                    
         Drupal\Core\Entity\EntityInterface::set().     
  65     Call to an undefined method                    
         Drupal\Core\Entity\EntityInterface::set().     
  76     Variable $message might not be defined.        
 ------ ----------------------------------------------- 
 ------ -------------------------------------------------------------------------- 
  Line   modules/crm_field/src/Plugin/Field/FieldType/CRMTelephoneItem.php         
 ------ -------------------------------------------------------------------------- 
  77     Access to an undefined property                                           
         Drupal\crm_field\Plugin\Field\FieldType\CRMTelephoneItem::$phone.         
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------- 
  Line   modules/crm_field/src/Plugin/Field/FieldType/CRMWebsiteItem.php           
 ------ -------------------------------------------------------------------------- 
  76     Access to an undefined property                                           
         Drupal\crm_field\Plugin\Field\FieldType\CRMWebsiteItem::$url.             
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  79     Access to an undefined property                                           
         Drupal\crm_field\Plugin\Field\FieldType\CRMWebsiteItem::$type.            
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------- 
  Line   modules/crm_field/src/Plugin/Field/FieldType/EmailItem.php                
 ------ -------------------------------------------------------------------------- 
  77     Access to an undefined property                                           
         Drupal\crm_field\Plugin\Field\FieldType\EmailItem::$email.                
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------------------ 
  Line   modules/crm_field/src/Plugin/Field/FieldType/ExternalIdentifierItem.php       
 ------ ------------------------------------------------------------------------------ 
  76     Access to an undefined property                                               
         Drupal\crm_field\Plugin\Field\FieldType\ExternalIdentifierItem::$source.      
         ๐Ÿ’ก Learn more:                                                                
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property      
  79     Access to an undefined property                                               
         Drupal\crm_field\Plugin\Field\FieldType\ExternalIdentifierItem::$identifier.  
         ๐Ÿ’ก Learn more:                                                                
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property      
 ------ ------------------------------------------------------------------------------ 
 ------ -------------------------------------------------------------------------- 
  Line   src/Controller/RelationshipController.php                                 
 ------ -------------------------------------------------------------------------- 
  99     Access to an undefined property                                           
         Drupal\Core\Entity\EntityInterface::$bundle.                              
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  100    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
  101    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
  102    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
  139    Access to an undefined property                                           
         Drupal\Core\Entity\EntityInterface::$bundle.                              
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  140    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
  141    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
  142    Call to an undefined method                                               
         Drupal\Core\Entity\EntityInterface::get().                                
 ------ -------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------ 
  Line   src/Entity/CrmContact.php                                         
 ------ ------------------------------------------------------------------ 
  154    Call to an undefined method                                       
         Drupal\Core\Field\FieldDefinitionInterface::setLabel().           
  174    Call to an undefined method                                       
         Drupal\Core\Field\FieldDefinitionInterface::setDisplayOptions().  
 ------ ------------------------------------------------------------------ 
 ------ ------------------------------------------------------- 
  Line   src/Form/CrmContactForm.php                            
 ------ ------------------------------------------------------- 
  149    Call to an undefined method                            
         Drupal\Core\Entity\EntityInterface::setNewRevision().  
 ------ ------------------------------------------------------- 
 ------ -------------------------------------------- 
  Line   src/Form/CrmRelationshipTypeForm.php        
 ------ -------------------------------------------- 
  77     Call to an undefined method                 
         Drupal\Core\Entity\EntityInterface::get().  
  86     Call to an undefined method                 
         Drupal\Core\Entity\EntityInterface::get().  
  94     Call to an undefined method                 
         Drupal\Core\Entity\EntityInterface::get().  
  103    Call to an undefined method                 
         Drupal\Core\Entity\EntityInterface::get().  
  138    Call to an undefined method                 
         Drupal\Core\Entity\EntityInterface::set().  
  150    Variable $message might not be defined.     
 ------ -------------------------------------------- 
 ------ -------------------------------------------------------------- 
  Line   tests/src/Functional/ContactEditFormTest.php                  
 ------ -------------------------------------------------------------- 
  123    Call to an undefined method                                   
         Drupal\block_content\Entity\BlockContent::getOwnerId().       
  130    Call to an undefined method                                   
         Drupal\Core\Entity\RevisionableInterface::getRevisionUser().  
  130    Call to an undefined method                                   
         Drupal\Core\Entity\RevisionableInterface::getRevisionUser().  
 ------ -------------------------------------------------------------- 
 [ERROR] Found 31 errors 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

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.69.0 2024