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

Created on 28 June 2023, 12 months ago
Updated 20 February 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.69.0 2024