Problem/Motivation
Since we're using readonly properties in attribute plugin discovery we can use readonly classes instead. This is supported in PHP 8.2+ so this would be restricted to 11.x.
Not sure how to handle BC since the base classes would be readonly and all child classes would also need to be as well.
There are also a handful of properties that are not declared readonly, but this might not matter since I'm not sure their values are actually set on the objects.
Steps to reproduce
Proposed resolution
Remaining tasks
This might not be possible due to the provider and class properties on AttributeBase. Leaving open in case anyone else has bright ideas.
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3440949
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mstrelan commentedComment #4
mstrelan commentedThis might not be possible due to the
providerandclassproperties onAttributeBase. Leaving open in case anyone else has bright ideas.Comment #5
mstrelan commentedComment #6
quietone commentedThis is no longer 11.x