Deprecated function: Creation of dynamic property

Created on 4 November 2024, 3 months ago

Problem/Motivation

Once the module the is enabled, the following warning is displayed:

Deprecated function: Creation of dynamic property Drupal\views_pretty_path\PathProcessor\ViewsPrettyPathProcessor::$currentRequest is deprecated in Drupal\views_pretty_path\PathProcessor\ViewsPrettyPathProcessor->__construct() (line 128 of modules/custom/views_pretty_path/src/PathProcessor/ViewsPrettyPathProcessor.php

I fixed it by adding the protected property:
/**
* Current request.
*
* @var \Symfony\Component\HttpFoundation\RequestStack
*/
protected $currentRequest;

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada web247 Toronto

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

Comments & Activities

Production build 0.71.5 2024