Clean up code for PHP 8

Created on 10 January 2023, almost 2 years ago
Updated 25 January 2023, almost 2 years ago
======================
Running checks against: /web/modules/contrib/workbench_menu_access
======================
--------------
Running PHPCBF
--------------

PHPCBF RESULT SUMMARY
-----------------------------------------------------------------------------------------------------------------------------------
FILE                                                                                                               FIXED  REMAINING
-----------------------------------------------------------------------------------------------------------------------------------
/var/www/html/web/modules/contrib/workbench_menu_access/workbench_menu_access.module                               11     1
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Traits/WorkbenchMenuAccessTestTrait.php          1      7
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessSettingsTest.php   3      3
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuTest.php       1      3
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuLinkTest.php   3      3
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessNodeFormTest.php   6      2
/var/www/html/web/modules/contrib/workbench_menu_access/src/Form/WorkbenchMenuAccessMenuForm.php                   1      2
/var/www/html/web/modules/contrib/workbench_menu_access/src/WorkbenchMenuAccessControlHandler.php                  1      1
-----------------------------------------------------------------------------------------------------------------------------------
A TOTAL OF 27 ERRORS WERE FIXED IN 8 FILES
-----------------------------------------------------------------------------------------------------------------------------------

Time: 1.03 secs; Memory: 8MB


-------------
Running PHPCS
-------------

FILE: /var/www/html/web/modules/contrib/workbench_menu_access/workbench_menu_access.module
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
 3 | ERROR | Missing short description in doc comment
------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Traits/WorkbenchMenuAccessTestTrait.php
---------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------
 64 | ERROR | Missing parameter type
 67 | ERROR | Description for the @return value is missing
 82 | ERROR | Missing parameter type
 84 | ERROR | Missing parameter type
 86 | ERROR | Missing parameter type
 88 | ERROR | Missing parameter type
 95 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessSettingsTest.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 50 | ERROR | Class property $node_type should use lowerCamel naming without underscores
 72 | ERROR | The array declaration extends to column 104 (the limit is 80). The array content should be split up over multiple
    |       | lines
 77 | ERROR | Doc comment is empty
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuTest.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 50 | ERROR | Class property $node_type should use lowerCamel naming without underscores
 73 | ERROR | The array declaration extends to column 123 (the limit is 80). The array content should be split up over multiple
    |       | lines
 79 | ERROR | Doc comment is empty
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuLinkTest.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 50 | ERROR | Class property $node_type should use lowerCamel naming without underscores
 73 | ERROR | The array declaration extends to column 123 (the limit is 80). The array content should be split up over multiple
    |       | lines
 79 | ERROR | Doc comment is empty
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessNodeFormTest.php
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
 50 | ERROR | Class property $node_type should use lowerCamel naming without underscores
 88 | ERROR | Doc comment is empty
----------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/src/Form/WorkbenchMenuAccessMenuForm.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
 116 | ERROR | Type hint "\Drupal\system\MenuInterface" missing for $menu
 118 | ERROR | The array declaration extends to column 139 (the limit is 80). The array content should be split up over multiple
     |       | lines
-----------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/workbench_menu_access/src/WorkbenchMenuAccessControlHandler.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
 59 | ERROR | Description for the @return value is missing
-------------------------------------------------------------------------------------------------------

Time: 385ms; Memory: 6MB

-------------
Running PHPMD
-------------
/var/www/html/web/modules/contrib/workbench_menu_access/src/WorkbenchMenuAccessControlHandler.php:73                 LongVariable           Avoid excessively long variable names like $workbench_access_manager. Keep variable name length under 20.
/var/www/html/web/modules/contrib/workbench_menu_access/src/WorkbenchMenuLinkContentAccessControlHandler.php:17      LongClassName          Avoid excessively long class names like WorkbenchMenuLinkContentAccessControlHandler. Keep class name length under 40.
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuLinkTest.php:82  ExcessiveMethodLength  The method testMenuLinkPage() has 102 lines of code. Current threshold is set to 100. Avoid really long methods.
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessMenuLinkTest.php:99  LongVariable           Avoid excessively long variable names like $menu_link_delete_path. Keep variable name length under 20.
/var/www/html/web/modules/contrib/workbench_menu_access/tests/src/Functional/WorkbenchMenuAccessNodeFormTest.php:91  ExcessiveMethodLength  The method testNodeForm() has 172 lines of code. Current threshold is set to 100. Avoid really long methods.
---------------
Running PHPStan
---------------
Note: Using configuration file /var/www/html/phpstan.neon.
 10/10 [β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“] 100%

 ------ -------------------------------------------------------------------------------------------------------------------- 
  Line   src/Form/WorkbenchMenuAccessMenuForm.php                                                                            
 ------ -------------------------------------------------------------------------------------------------------------------- 
  31     Drupal\workbench_menu_access\Form\WorkbenchMenuAccessMenuForm::__construct() does not call parent constructor from  
         Drupal\Core\Form\ConfigFormBase.                                                                                    
  63     Only booleans are allowed in an if condition, mixed given.                                                          
  64     Only booleans are allowed in an if condition, Drupal\Core\Entity\EntityInterface|null given.                        
  65     Call to an undefined method Drupal\Core\Entity\EntityInterface::getAccessScheme().                                  
  69     Implicit array creation is not allowed - variable $options might not exist.                                         
  78     Variable $options might not be defined.                                                                             
  80     Variable $options might not be defined.                                                                             
  80     Variable $options might not be defined.                                                                             
 ------ -------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------ 
  Line   src/Form/WorkbenchMenuAccessSettingsForm.php                                                                            
 ------ ------------------------------------------------------------------------------------------------------------------------ 
  28     Drupal\workbench_menu_access\Form\WorkbenchMenuAccessSettingsForm::__construct() does not call parent constructor from  
         Drupal\Core\Form\ConfigFormBase.                                                                                        
  61     Construct empty() is not allowed. Use more strict comparison.                                                           
  67     Implicit array creation is not allowed - variable $options does not exist.                                              
  78     Only booleans are allowed in an if condition, mixed given.                                                              
  82     Call to an undefined method Drupal\Core\Entity\EntityInterface::get().                                                  
 ------ ------------------------------------------------------------------------------------------------------------------------ 

 ------ -------------------------------------------------------------------------------------------- 
  Line   src/WorkbenchMenuAccessControlHandler.php                                                   
 ------ -------------------------------------------------------------------------------------------- 
  69     Call to an undefined method Drupal\Core\Entity\EntityInterface::getThirdPartySetting().     
  70     Construct empty() is not allowed. Use more strict comparison.                               
  70     Construct empty() is not allowed. Use more strict comparison.                               
  77     Dynamic call to static method Drupal\workbench_access\WorkbenchAccessManager::checkTree().  
 ------ -------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------ 
  Line   src/WorkbenchMenuLinkContentAccessControlHandler.php                                                  
 ------ ------------------------------------------------------------------------------------------------------ 
  58     Call to an undefined method Drupal\Core\Entity\EntityInterface::getMenuName().                        
  60     Only booleans are allowed in an if condition, Drupal\system\Entity\Menu|null given.                   
  68     Call to an undefined method Drupal\Core\Entity\EntityAccessControlHandlerInterface::checkSections().  
 ------ ------------------------------------------------------------------------------------------------------ 

 ------ -------------------------------------------------------------------------------------------- 
  Line   tests/src/Functional/WorkbenchMenuAccessMenuLinkTest.php                                    
 ------ -------------------------------------------------------------------------------------------- 
  90     Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().                     
  94     Dynamic call to static method PHPUnit\Framework\Assert::assertEmpty().                      
  98     Call to method id() on an unknown class                                                     
         Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.  
         πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols                         
  98     Implicit array creation is not allowed - variable $path_list does not exist.                
  99     Call to method id() on an unknown class                                                     
         Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.  
         πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols                         
  107    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  111    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  115    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  132    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  136    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  140    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  149    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  153    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  157    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  172    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  176    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
  180    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.      
 ------ -------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------- 
  Line   tests/src/Functional/WorkbenchMenuAccessMenuTest.php                                    
 ------ ---------------------------------------------------------------------------------------- 
  86     Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().                 
  90     Dynamic call to static method PHPUnit\Framework\Assert::assertEmpty().                  
  96     Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  98     Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  103    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  105    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  109    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  112    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  123    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  132    Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().                 
  137    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  143    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  148    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  160    Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
 ------ ---------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------- 
  Line   tests/src/Functional/WorkbenchMenuAccessNodeFormTest.php                   
 ------ --------------------------------------------------------------------------- 
  100    Dynamic call to static method PHPUnit\Framework\Assert::assertEmpty().     
  108    Dynamic call to static method PHPUnit\Framework\Assert::assertNotEmpty().  
  113    Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().    
  117    Dynamic call to static method PHPUnit\Framework\Assert::assertEmpty().     
  122    Dynamic call to static method PHPUnit\Framework\Assert::assertEmpty().     
  164    Dynamic call to static method PHPUnit\Framework\Assert::assertNotEmpty().  
  273    Implicit array creation is not allowed - variable $sets does not exist.    
  281    Only booleans are allowed in an if condition, string|null given.           
 ------ --------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------- 
  Line   tests/src/Functional/WorkbenchMenuAccessSettingsTest.php                                
 ------ ---------------------------------------------------------------------------------------- 
  84     Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().                 
  89     Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  92     Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  95     Method Behat\Mink\WebAssert::statusCodeEquals() invoked with 2 parameters, 1 required.  
  107    Dynamic call to static method PHPUnit\Framework\Assert::assertTrue().                   
  114    Dynamic call to static method PHPUnit\Framework\Assert::assertEquals().                 
 ------ ---------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Traits/WorkbenchMenuAccessTestTrait.php (in context of class                                                   
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest)                                           
 ------ ------------------------------------------------------------------------------------------------------------------------- 
  27     PHPDoc tag @param for parameter $vocabulary with type                                                                    
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary is not subtype of native type                
         Drupal\taxonomy\Entity\Vocabulary.                                                                                       
  27     Parameter $vocabulary of method                                                                                          
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest::createTerms() has invalid type            
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary.                                             
  56     PHPDoc tag @param for parameter $account with type                                                                       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface is not subtype of native type             
         Drupal\Core\Session\AccountInterface.                                                                                    
  56     PHPDoc tag @param for parameter $scheme with type                                                                        
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface is not subtype of native  
         type Drupal\workbench_access\Entity\AccessSchemeInterface.                                                               
  56     Parameter $account of method                                                                                             
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface.                                          
  56     Parameter $scheme of method                                                                                              
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface.                          
  69     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest::addMenu() has invalid return type  
         Drupal\Tests\workbench_menu_access\Traits\Drupal\system\Entity\Menu.                                                     
  97     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuLinkTest::addMenuLink() has invalid return   
         type Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.                          
 ------ ------------------------------------------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Traits/WorkbenchMenuAccessTestTrait.php (in context of class                                                    
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest)                                                
 ------ -------------------------------------------------------------------------------------------------------------------------- 
  27     PHPDoc tag @param for parameter $vocabulary with type                                                                     
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary is not subtype of native type                 
         Drupal\taxonomy\Entity\Vocabulary.                                                                                        
  27     Parameter $vocabulary of method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest::createTerms()  
         has invalid type Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary.                             
  56     PHPDoc tag @param for parameter $account with type                                                                        
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface is not subtype of native type              
         Drupal\Core\Session\AccountInterface.                                                                                     
  56     PHPDoc tag @param for parameter $scheme with type                                                                         
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface is not subtype of native   
         type Drupal\workbench_access\Entity\AccessSchemeInterface.                                                                
  56     Parameter $account of method                                                                                              
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest::addUserToSection() has invalid type            
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface.                                           
  56     Parameter $scheme of method                                                                                               
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest::addUserToSection() has invalid type            
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface.                           
  69     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest::addMenu() has invalid return type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\system\Entity\Menu.                                                      
  97     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessMenuTest::addMenuLink() has invalid return type   
         Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.                                
 ------ -------------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Traits/WorkbenchMenuAccessTestTrait.php (in context of class                                                   
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest)                                           
 ------ ------------------------------------------------------------------------------------------------------------------------- 
  27     PHPDoc tag @param for parameter $vocabulary with type                                                                    
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary is not subtype of native type                
         Drupal\taxonomy\Entity\Vocabulary.                                                                                       
  27     Parameter $vocabulary of method                                                                                          
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest::createTerms() has invalid type            
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary.                                             
  56     PHPDoc tag @param for parameter $account with type                                                                       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface is not subtype of native type             
         Drupal\Core\Session\AccountInterface.                                                                                    
  56     PHPDoc tag @param for parameter $scheme with type                                                                        
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface is not subtype of native  
         type Drupal\workbench_access\Entity\AccessSchemeInterface.                                                               
  56     Parameter $account of method                                                                                             
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface.                                          
  56     Parameter $scheme of method                                                                                              
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface.                          
  69     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest::addMenu() has invalid return type  
         Drupal\Tests\workbench_menu_access\Traits\Drupal\system\Entity\Menu.                                                     
  97     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessNodeFormTest::addMenuLink() has invalid return   
         type Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.                          
 ------ ------------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------------- 
  Line   tests/src/Traits/WorkbenchMenuAccessTestTrait.php (in context of class                                                   
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest)                                           
 ------ ------------------------------------------------------------------------------------------------------------------------- 
  27     PHPDoc tag @param for parameter $vocabulary with type                                                                    
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary is not subtype of native type                
         Drupal\taxonomy\Entity\Vocabulary.                                                                                       
  27     Parameter $vocabulary of method                                                                                          
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest::createTerms() has invalid type            
         Drupal\Tests\workbench_menu_access\Traits\Drupal\taxonomy\Entity\Vocabulary.                                             
  56     PHPDoc tag @param for parameter $account with type                                                                       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface is not subtype of native type             
         Drupal\Core\Session\AccountInterface.                                                                                    
  56     PHPDoc tag @param for parameter $scheme with type                                                                        
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface is not subtype of native  
         type Drupal\workbench_access\Entity\AccessSchemeInterface.                                                               
  56     Parameter $account of method                                                                                             
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\Core\Session\AccountInterface.                                          
  56     Parameter $scheme of method                                                                                              
         Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest::addUserToSection() has invalid type       
         Drupal\Tests\workbench_menu_access\Traits\Drupal\workbench_access\Entity\AccessSchemeInterface.                          
  69     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest::addMenu() has invalid return type  
         Drupal\Tests\workbench_menu_access\Traits\Drupal\system\Entity\Menu.                                                     
  97     Method Drupal\Tests\workbench_menu_access\Functional\WorkbenchMenuAccessSettingsTest::addMenuLink() has invalid return   
         type Drupal\Tests\workbench_menu_access\Traits\Drupal\menu_link_content\Entity\MenuLinkContent.                          
 ------ ------------------------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------- 
  Line   workbench_menu_access.module                                                                        
 ------ ---------------------------------------------------------------------------------------------------- 
  55     Call to an undefined method Drupal\Core\Entity\EntityAccessControlHandlerInterface::accessCheck().  
  67     Only booleans are allowed in &&, Drupal\system\Entity\Menu|null given on the right side.            
  67     Only booleans are allowed in &&, string|null given on the left side.                                
  69     Call to an undefined method Drupal\Core\Entity\EntityAccessControlHandlerInterface::accessCheck().  
  100    Only booleans are allowed in an if condition, Drupal\system\Entity\Menu|null given.                 
  104    Call to an undefined method Drupal\Core\Entity\EntityAccessControlHandlerInterface::accessCheck().  
  122    Call to an undefined method Drupal\Core\Form\FormInterface::getEntity().                            
  126    Construct empty() is not allowed. Use more strict comparison.                                       
  149    Implicit array creation is not allowed - variable $params does not exist.                           
 ------ ---------------------------------------------------------------------------------------------------- 

Using https://github.com/palantirnet/drupal-10-development

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024