Implicitly marking parameter as nullable is deprecated

Created on 3 March 2025, about 1 month ago

Drupal version : 10.4.2
PHP version : 8.4.4
Drush version : 13.3.3.0

    "drupal/opigno_learning_path": "^3.2"

using this patch too

   "drupal/opigno_learning_path": {
        "PHP 8.4": "https://git.drupalcode.org/project/opigno_learning_path/-/merge_requests/29.diff"
      },

when run drush cr these errors show:

PHP Deprecated:  Drupal\opigno_learning_path\Form\LearningPathMembersForm::buildForm(): Implicitly marking parameter $page as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Form/LearningPathMembersForm.php on line 149

Deprecated: Drupal\opigno_learning_path\Form\LearningPathMembersForm::buildForm(): Implicitly marking parameter $page as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Form/LearningPathMembersForm.php on line 149

PHP Deprecated:  Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildLpSteps(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 676

Deprecated: Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildLpSteps(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 676

PHP Deprecated:  Drupal\opigno_learning_path\Controller\LearningPathAchievementController::currentUser(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 724

Deprecated: Drupal\opigno_learning_path\Controller\LearningPathAchievementController::currentUser(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 724

PHP Deprecated:  Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTrainingSummary(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 746

Deprecated: Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTrainingSummary(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 746

PHP Deprecated:  Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTraining(): Implicitly marking parameter $group as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 767

Deprecated: Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTraining(): Implicitly marking parameter $group as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 767

PHP Deprecated:  Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTraining(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 767

Deprecated: Drupal\opigno_learning_path\Controller\LearningPathAchievementController::buildTraining(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in /Applications/MAMP/htdocs/cep_cms/modules/contrib/opigno_learning_path/src/Controller/LearningPathAchievementController.php on line 767
πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jakegibs617

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