GitLabCI: Fix existing PHPStan issues

Created on 12 June 2024, 13 days ago
Updated 13 June 2024, 12 days ago

Problem/Motivation

$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
 ------ -------------------------------------------------------------------- 
  Line   src/Entity/ConfigSnapshot.php                                       
 ------ -------------------------------------------------------------------- 
  167    Method Drupal\config_snapshot\Entity\ConfigSnapshot::save() should  
         return int but return statement is missing.                         
 ------ -------------------------------------------------------------------- 
 ------ ------------------------------------------------------- 
  Line   tests/src/Unit/ConfigSnapshotConfigEntityUnitTest.php  
 ------ ------------------------------------------------------- 
  55     Missing call to parent::setUp() method.                
 ------ ------------------------------------------------------- 
 [ERROR] Found 2 errors 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States joegraduate Arizona, USA

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