Creation of dynamic property Drupal\tfa\Plugin\Tfa\TfaTotp::$isValid is deprecated

Created on 28 June 2023, over 1 year ago
Updated 7 August 2024, 4 months ago

Problem/Motivation

Deprecated function: Creation of dynamic property Drupal\tfa\Plugin\Tfa\TfaTotp::$isValid is deprecated in Drupal\tfa\Plugin\Tfa\TfaTotp->validate() (line 318 of modules/contrib/tfa/src/Plugin/Tfa/TfaTotp.php).

In PHP 8.2 and later, setting a value to an undeclared class property is deprecated, and emits a deprecation notice the first time the property is set during the lifetime of the application execution.

Proposed resolution

Add property to TfaBasePlugin class.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States markdorison

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

Comments & Activities

Production build 0.71.5 2024