Drupal 11 compatibility

Created on 25 October 2024, about 2 months ago

Problem/Motivation

The module is currently not compatible with Drupal 11.

Proposed resolution

Use Upgrade Status module and drupal-rector to fix issues/deprecations preventing the module from being Drupal 11 compatible.

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇫🇮Finland gaards

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

Merge Requests

Comments & Activities

  • Issue created by @gaards
  • Pipeline finished with Failed
    about 2 months ago
    #320434
  • Pipeline finished with Failed
    about 2 months ago
    #320456
  • Pipeline finished with Failed
    about 2 months ago
    #320462
  • 🇫🇮Finland gaards

    I added a MR targeting the 4.x version, fixing these issues reported by the Upgrade Status module:

    FILE: modules/contrib/graphql_twig/src/Controller/ArgumentResolver.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 16   Class Drupal\graphql_twig\Controller\ArgumentResolver       
                        implements deprecated interface                             
                        Symfony\Component\HttpKernel\Controller\ArgumentValueResolve
                        rInterface: since Symfony 6.2, implement                    
                        ValueResolverInterface instead                              
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/src/GraphQLNodeVisitor.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 16   Class Drupal\graphql_twig\GraphQLNodeVisitor extends        
                        deprecated class Twig\NodeVisitor\AbstractNodeVisitor: since
                        3.9 (to be removed in 4.0)                                  
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/tests/src/Kernel/BlockTest.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 21   Property                                                    
                        Drupal\Tests\graphql_twig\Kernel\BlockTest::$modules        
                        property must be protected.                                 
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/tests/src/Kernel/EntityRenderTest.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 25   Property                                                    
                        Drupal\Tests\graphql_twig\Kernel\EntityRenderTest::$modules 
                        property must be protected.                                 
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/tests/src/Kernel/RouteTest.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 18   Property                                                    
                        Drupal\Tests\graphql_twig\Kernel\RouteTest::$modules        
                        property must be protected.                                 
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/tests/src/Kernel/ThemeTest.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 32   Property                                                    
                        Drupal\Tests\graphql_twig\Kernel\ThemeTest::$modules        
                        property must be protected.                                 
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/tests/src/Unit/GraphQLTwigExtensionTest.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 30   Missing call to parent::setUp() method.                     
    --------------------------------------------------------------------------------
    
    FILE: /var/www/html/vendor/symfony/deprecation-contracts/function.php
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 25   Since twig/twig 3.9: Twig node                              
                        "Drupal\graphql_twig\GraphQLNode" is not marked as ready for
                        using "yield" instead of "echo"; please make it ready and   
                        then flag it with the #[YieldReady] attribute.              
    --------------------------------------------------------------------------------
    
    FILE: modules/contrib/graphql_twig/graphql_twig.info.yml
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 5    Value of core_version_requirement: ^9 || ^10 is not         
                        compatible with the next major version of Drupal core. See  
                        https://drupal.org/node/3070687.                            
    --------------------------------------------------------------------------------
    
    FILE:
    modules/contrib/graphql_twig/tests/themes/graphql_twig_test_theme/graphql_twig_t
    est_theme.info.yml
    
    STATUS         LINE                           MESSAGE                           
    --------------------------------------------------------------------------------
    Check manually 7    Value of core_version_requirement: ^9 || ^10 is not         
                        compatible with the next major version of Drupal core. See  
                        https://drupal.org/node/3070687.                            
    --------------------------------------------------------------------------------
    
Production build 0.71.5 2024