Issues reported by PHPStan

Created on 1 November 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
 ------ ----------------------------------------------------------------------------------------------- 
  Line   src/Plugin/views/argument/ViewsDateFormatSqlArgument.php                                       
 ------ ----------------------------------------------------------------------------------------------- 
  82     Access to an undefined property                                                                
         Drupal\views_date_format_sql\Plugin\views\argument\ViewsDateFormatSqlArgument::$dependencies.  
         ๐Ÿ’ก Learn more:                                                                                 
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property                       
 ------ ----------------------------------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Plugin/views/field/ViewsDateFormatSqlField.php                    
 ------ ---------------------------------------------------------------------- 
  179    \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 
 [ERROR] Found 2 errors 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Active

Version

3.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