Fix call to an undefined method Drupal\Tests\components\Kernel\TwigExtensionTest::getName()

Created on 10 September 2024, 6 months ago

Problem/Motivation

Phpstan is reporting multiple calls to an undefined method getName()

 ------ ------------------------------------------------------------------------------------------ 
  Line   tests/src/Kernel/TwigExtensionTest.php                                                    
 ------ ------------------------------------------------------------------------------------------ 
  43     Call to an undefined method Drupal\Tests\components\Kernel\TwigExtensionTest::getName().  
         πŸͺͺ  method.notFound                                                                       
  75     Call to an undefined method Drupal\Tests\components\Kernel\TwigExtensionTest::getName().  
         πŸͺͺ  method.notFound                                                                       
  125    Call to an undefined method Drupal\Tests\components\Kernel\TwigExtensionTest::getName().  
         πŸͺͺ  method.notFound                                                                       
  174    Call to an undefined method Drupal\Tests\components\Kernel\TwigExtensionTest::getName().  
         πŸͺͺ  method.notFound                                                                       
 ------ ------------------------------------------------------------------------------------------ 

 ------ ----------------------------------------------------------------------------------------------- 
  Line   tests/src/Unit/TwigExtensionFiltersTest.php                                                    
 ------ ----------------------------------------------------------------------------------------------- 
  279    Call to an undefined method Drupal\Tests\components\Unit\TwigExtensionFiltersTest::getName().  
         πŸͺͺ  method.notFound                                                                            
 ------ ----------------------------------------------------------------------------------------------- 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024