mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
47cc73fe1a
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.