Deprecated function: current(): Calling current() on an object is deprecated

Created on 16 January 2024, 10 months ago
Updated 17 January 2024, 10 months ago

Problem/Motivation

When a Learning module is created, this error message is displayed on the log messages and doesn't allow us to continue creating a learning module.

Deprecated function: current(): Calling current() on an object is deprecated in Drupal\opigno_module\Form\OpignoModuleForm->save() (line 317 of /app/web/modules/contrib/opigno_module/src/Form/OpignoModuleForm.php)

Steps to reproduce

Calling this function on objects is deprecated since PHP8.1:
https://www.php.net/manual/es/migration81.deprecated.php (see section Standard) and https://www.php.net/manual/es/function.current.php

Steps to reproduce

  • Install opigno_module using PHP8.1
  • Try to create a content type Opigno Module

Proposed resolution

N/A

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇦🇷Argentina andreadruiz Buenos Aires

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024