mirror of
https://github.com/moodle/moodle.git
synced 2025-02-25 12:33:18 +01:00
Since PHP 8.2, all properties on a class must be defined as the PHP Dynamic Property feature has been deprecated. This commit goes one step further and switches this class to using constructor property promotion. This language feature has been available since PHP 8.0 and allows for simplified creation of class properties which are initially defined in the constructor.