Fix PHPStan issues identified by GitLab CI

Created on 19 April 2024, 8 months ago
Updated 27 July 2024, 5 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

Closed: duplicate

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