Fix PHPStan issues identified by GitLab CI

Created on 19 April 2024, 2 months ago

Problem/Motivation

GitLab CI has identified some issues in the PHPStan scan:

 ------ -------------------------------------------------------------------- 
  Line   src/FeedTypeTamperManager.php                                       
 ------ -------------------------------------------------------------------- 
  13     Usage of deprecated trait                                           
         Symfony\Component\DependencyInjection\ContainerAwareTrait in class  
         Drupal\feeds_tamper\FeedTypeTamperManager:                          
         since Symfony 6.4, use dependency injection instead                 
 ------ -------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------------------------- 
  Line   tests/src/FunctionalJavascript/FeedsTamperJavascriptTestBase.php                        
 ------ ---------------------------------------------------------------------------------------- 
  17     Property                                                                                
         Drupal\Tests\feeds_tamper\FunctionalJavascript\FeedsTamperJavascriptTestBase::$modules  
         property must be protected.                                                             
         πŸ’‘ Change record: https://www.drupal.org/node/2909426                                   
 ------ ---------------------------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   tests/src/Kernel/FeedsTamperKernelTestBase.php                        
 ------ ---------------------------------------------------------------------- 
  17     Property                                                              
         Drupal\Tests\feeds_tamper\Kernel\FeedsTamperKernelTestBase::$modules  
         property must be protected.                                           
         πŸ’‘ Change record: https://www.drupal.org/node/2909426                 
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------- 
  Line   tests/src/Unit/Adapter/TamperableFeedItemAdapterTest.php  
 ------ ---------------------------------------------------------- 
  32     Missing call to parent::setUp() method.                   
 ------ ---------------------------------------------------------- 

There are also issues in the /legacy directory, but I assume those are safe to ignore because that code will eventually be rewritten or removed anyway.

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

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