There are some phpstan issues to resolve in the 2.2.x branch:

 ------ ----------------------------------------------------------------------- 
  Line   metatag_views/src/Controller/MetatagViewsTranslationController.php     
 ------ ----------------------------------------------------------------------- 
  24     Property                                                               
         Drupal\metatag_views\Controller\MetatagViewsTranslationController::$e  
         ntityTypeManager (Drupal\Core\Entity\EntityTypeManagerInterface)       
         overriding property                                                    
         Drupal\Core\Controller\ControllerBase::$entityTypeManager should not   
         have a native type.                                                    
         🪪  property.extraNativeType (non-ignorable)                           
 ------ ----------------------------------------------------------------------- 
 ------ -------------------------------------------------------------- 
  Line   metatag_views/src/Form/MetatagViewsEditForm.php               
 ------ -------------------------------------------------------------- 
  100    Call to deprecated method get() of class                      
         Symfony\Component\HttpFoundation\Request:                     
         since Symfony 7.4, use properties `->attributes`, `query` or  
         `request` directly instead                                    
         🪪  method.deprecated                                         
  101    Call to deprecated method get() of class                      
         Symfony\Component\HttpFoundation\Request:                     
         since Symfony 7.4, use properties `->attributes`, `query` or  
         `request` directly instead                                    
         🪪  method.deprecated                                         
 ------ -------------------------------------------------------------- 
 ------ -------------------------------------------------------------- 
  Line   metatag_views/src/Form/MetatagViewsTranslationForm.php        
 ------ -------------------------------------------------------------- 
  175    Call to deprecated method get() of class                      
         Symfony\Component\HttpFoundation\Request:                     
         since Symfony 7.4, use properties `->attributes`, `query` or  
         `request` directly instead                                    
         🪪  method.deprecated                                         
  176    Call to deprecated method get() of class                      
         Symfony\Component\HttpFoundation\Request:                     
         since Symfony 7.4, use properties `->attributes`, `query` or  
         `request` directly instead                                    
         🪪  method.deprecated                                         
  177    Call to deprecated method get() of class                      
         Symfony\Component\HttpFoundation\Request:                     
         since Symfony 7.4, use properties `->attributes`, `query` or  
         `request` directly instead                                    
         🪪  method.deprecated                                         
 ------ -------------------------------------------------------------- 
 ------ ----------------------------------------------------------------------- 
  Line   metatag_views/src/MetatagViewsCacheWrapper.php                         
 ------ ----------------------------------------------------------------------- 
  52     Access to an undefined property                                        
         Drupal\metatag_views\MetatagViewsCacheWrapper::$container.             
         🪪  property.notFound                                                  
         💡  Learn more: https://phpstan.org/blog/solving-phpstan-access-to-und  
         efined-property                                                        
  102    Call to deprecated method cacheExpire() of class                       
         Drupal\views\Plugin\views\cache\CachePluginBase:                       
         in drupal:11.4.0 and is removed from drupal:13.0.0. No                 
           replacement is provided.                                             
         🪪  method.deprecated                                                  
  116    PHPDoc tag @var with type                                              
         Drupal\metatag_views\Plugin\views\display_extender\MetatagDisplayExte  
         nder is not subtype of native type hasOffset(string).                  
         🪪  varTag.nativeType                                                  
 ------ ----------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------- 
  Line   src/Plugin/metatag/Group/GroupBase.php                          
 ------ ---------------------------------------------------------------- 
  78     PHPDoc tag @return with type                                    
         Drupal\Core\StringTranslation\TranslatableMarkup|string is not  
         subtype of native type string.                                  
         🪪  return.phpDocType                                           
  88     PHPDoc tag @return with type                                    
         Drupal\Core\StringTranslation\TranslatableMarkup|string is not  
         subtype of native type string.                                  
         🪪  return.phpDocType                                           
 ------ ---------------------------------------------------------------- 

Issue fork metatag-3636782

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

damienmckenna created an issue. See original summary.

ishfaqafridi85 made their first commit to this issue’s fork.

ishfaqafridi85’s picture

Status: Active » Needs review

Resolves the PHPStan errors listed in the issue, pipeline green now.

csakiistvan’s picture

Assigned: Unassigned » csakiistvan
csakiistvan’s picture

Assigned: csakiistvan » Unassigned
Status: Needs review » Reviewed & tested by the community

✅ Tested and works — the phpstan job fails with 22 errors on the latest 2.2.x pipeline and reports "No errors" on MR !316; applied the MR locally, rebuilt caches, the front page returns 200 and getGlobalMetatags() still returns the "global" defaults. The phpstan issues are resolved without a behaviour change.

Notes
  • MetatagViewsEditForm, MetatagViewsTranslationForm and MetatagViewsTranslationController have no routes since #2956199 removed metatag_views.routing.yml, so their changes could not be exercised in the UI.
  • Nothing instantiates MetatagViewsCachePluginManager, so its new constructor argument breaks no caller.

I used AI to draft my review texts, I have manually checked its findings.

damienmckenna’s picture

Great work everyone! Thank you.

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.