PHPStan hates us cuz we're ignoring something we don't see any more

Created on 12 March 2025, 21 days ago

Problem/Motivation

 ------ ------------------------------------------------------------------------------------------------------ 
  Line   src/Activator/RecipeActivator.php                                                                     
 ------ ------------------------------------------------------------------------------------------------------ 
         Ignored error pattern #^Call to function method_exists\(\) with                                       
         'Drupal\\\\Core\\\\Recipe\\\\Recipe' and 'getExtra' will always                                       
         evaluate to true\.$# (function.alreadyNarrowedType) in path                                           
         /builds/project/project_browser/web/modules/custom/project_browser/src/Activator/RecipeActivator.php  
         was not matched in reported errors.                                                                   
 ------ ------------------------------------------------------------------------------------------------------ 
 ------ ------------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Kernel/RecipeActivatorTest.php                                                                     
 ------ ------------------------------------------------------------------------------------------------------------- 
         Ignored error pattern #^Call to function method_exists\(\) with                                              
         'Drupal\\\\Core\\\\Recipe\\\\Recipe' and 'getExtra' will always                                              
         evaluate to true\.$# (function.alreadyNarrowedType) in path                                                  
         /builds/project/project_browser/web/modules/custom/project_browser/tests/src/Kernel/RecipeActivatorTest.php  
         was not matched in reported errors.                                                                          
 ------ ------------------------------------------------------------------------------------------------------------- 

Steps to reproduce

https://git.drupalcode.org/project/project_browser/-/jobs/4642312

Proposed resolution

I think get rid of the things we're ignoring in phpstan.neon cuz we don't need to any more? (I would love to know why not.)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States chrisfromredfin Portland, Maine

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

Comments & Activities

Production build 0.71.5 2024