Active
Project:
Rector
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2025 at 20:17 UTC
Updated:
12 Jan 2025 at 20:17 UTC
Jump to comment: Most recent
11.0.6
0.20.3
In my annotation class, I had this:
/**
* The directions for the plugin's links.
*
* Array keys are machine names, array values are labels.
*
* @var array
*/
public $directions = [];
The rector rule produces this in the attribute class:
public readonly array $directions,
This should have the same default value as in the annotation, so it's an optional attribute property.
Comments