MDL-73424 general: Internal methods must have same type as parent

Otherwise the error is thrown in PHP8.1
This commit is contained in:
Marina Glancy
2022-10-10 16:46:13 +02:00
parent cc4fec275f
commit 41b93bd7e5
42 changed files with 154 additions and 98 deletions
+1
View File
@@ -77,6 +77,7 @@ class chart_base implements JsonSerializable, renderable {
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
global $CFG;
return [