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

Created on 29 August 2023, about 1 year ago
Updated 2 November 2023, 11 months ago

Problem/Motivation

Getting following error while running test cases.

Unsilenced deprecation notices (5)

  1x: Creation of dynamic property Drupal\Tests\redirect_after_login\Functional\AdminTest::$admin_role is deprecated
    1x in AdminTest::testAdminSettingsPathAccess from Drupal\Tests\redirect_after_login\Functional

  1x: Creation of dynamic property Drupal\Tests\redirect_after_login\Functional\AdminTest::$editor_role is deprecated
    1x in AdminTest::testAdminSettingsPathAccess from Drupal\Tests\redirect_after_login\Functional

  1x: Creation of dynamic property Drupal\Tests\redirect_after_login\Functional\AdminTest::$admin_user is deprecated
    1x in AdminTest::testAdminSettingsPathAccess from Drupal\Tests\redirect_after_login\Functional

  1x: Creation of dynamic property Drupal\Tests\redirect_after_login\Functional\AdminTest::$editor_user is deprecated
    1x in AdminTest::testAdminSettingsPathAccess from Drupal\Tests\redirect_after_login\Functional

  1x: Creation of dynamic property Drupal\Tests\redirect_after_login\Functional\AdminTest::$simple_user is deprecated
    1x in AdminTest::testAdminSettingsPathAccess from Drupal\Tests\redirect_after_login\Functional

Steps to reproduce

Run following command

./vendor/bin/phpunit -c core/ --group redirect_after_login

Proposed resolution

Need to fixed above issues.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

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