Update for coding standards changes for PHP 8+

Created on 14 November 2023, about 1 year ago
Updated 30 November 2023, about 1 year ago

FILE: /var/www/docroot/modules/custom/taxonomy_bootstrap_accordion/taxonomy_bootstrap_accordion.module
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
13 | ERROR | Function taxonomy_bootstrap_accordion_theme() does not have parameter type hint nor @param annotation for its parameter $existing.
13 | ERROR | Function taxonomy_bootstrap_accordion_theme() does not have parameter type hint nor @param annotation for its parameter $type.
13 | ERROR | Function taxonomy_bootstrap_accordion_theme() does not have parameter type hint nor @param annotation for its parameter $theme.
13 | ERROR | Function taxonomy_bootstrap_accordion_theme() does not have parameter type hint nor @param annotation for its parameter $path.
13 | ERROR | Function taxonomy_bootstrap_accordion_theme() does not have return type hint nor @return annotation for its return value.
26 | ERROR | Function taxonomy_bootstrap_accordion_help() does not have parameter type hint nor @param annotation for its parameter $route_name.
26 | ERROR | Function taxonomy_bootstrap_accordion_help() does not have return type hint nor @return annotation for its return value.
--------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/docroot/modules/custom/taxonomy_bootstrap_accordion/src/Plugin/Block/TaxonomyMenuBlock.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
65 | ERROR | @param annotation of method \Drupal\taxonomy_bootstrap_accordion\Plugin\Block\TaxonomyMenuBlock::__construct() does not specify type hint for items of its traversable parameter $configuration.
117 | ERROR | Method \Drupal\taxonomy_bootstrap_accordion\Plugin\Block\TaxonomyMenuBlock::blockForm() does not have parameter type hint nor @param annotation for its parameter $form.
117 | ERROR | Method \Drupal\taxonomy_bootstrap_accordion\Plugin\Block\TaxonomyMenuBlock::blockForm() does not have return type hint nor @return annotation for its return value.
156 | ERROR | Method \Drupal\taxonomy_bootstrap_accordion\Plugin\Block\TaxonomyMenuBlock::groupVocab() does not have parameter type hint nor @param annotation for its parameter $vocabulary.
156 | ERROR | Method \Drupal\taxonomy_bootstrap_accordion\Plugin\Block\TaxonomyMenuBlock::groupVocab() does not have return type hint nor @return annotation for its return value.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States shelane

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024