Replace the test class protected $modules deprecation error with a phpstan-drupal rule

Created on 2 August 2022, over 2 years ago
Updated 11 November 2023, about 1 year ago

Problem/Motivation

@trigger_error('The ' . get_class($test) . '::$modules property must be declared protected. See https://www.drupal.org/node/2909426', E_USER_DEPRECATED);

This could be enforced by phpcs or rector, the other option is throwing an exception here but there's no version information in the deprecation message so that'd probably have to change to $version_it_was_added to be enforced in 11.0.0

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.2 โœจ

Component
Baseย  โ†’

Last updated about 3 hours ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom catch

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024