moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
55 stars 49 forks source link

Fix 'Implicitly marking a parameter as nullable is deprecated since PHP 8.4' codechecker warning #667

Closed abias closed 3 weeks ago

abias commented 3 weeks ago

Some days ago, Github actions started to throw these codechecker warnings:

FILE: /home/runner/work/moodle-theme_boost_union/moodle-theme_boost_union/moodle/theme/boost_union/classes/smartmenu_item.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
 1321 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable
      |         | instead. Found implicitly nullable parameter: $type.
      |         | (PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated)
 1338 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable
      |         | instead. Found implicitly nullable parameter: $option.
      |         | (PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated)
------------------------------------------------------------------------------------------------------------------------------------