Deprecated function: Creation of dynamic property (with php 8.2)

Created on 26 September 2023, about 1 year ago

Problem/Motivation

Every time the Notify Queue is accessed a php deprecated function message as appears:

Deprecated function: Creation of dynamic property Drupal\mysql\Driver\Database\mysql\Select::$allowRowCount is deprecated in Drupal\notify\Notify->selectContent() (line 329 of modules/contrib/notify/src/Notify.php). 

Steps to reproduce

  1. Enable error display
  2. Enable the module on a site using PHP version is 8.2>
  3. Inspect Notify Queue
  4. Observe errors

Proposed resolution

Per PHP.net: Deprecated Features (8,2), creation of dynamic properties is deprecated and need updating the code to be compatible with >PHP 8.2.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇴Norway gisle Norway

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

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

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024