MDL-70891 core: fix the lang_string::__set_state()
commit9e8965246138b44e1c8cab7f313e493ad81f1cb3
authorMarina Glancy <marina@moodle.com>
Mon, 15 Feb 2021 12:32:16 +0000 (15 13:32 +0100)
committerMarina Glancy <marina@moodle.com>
Sun, 21 Feb 2021 21:07:18 +0000 (21 22:07 +0100)
tree1aeb65c509d9f96690b7141bfcda0ac6b67a40a4
parenta93828a18865a4c53d95fb604cfffc243ec74e50
MDL-70891 core: fix the lang_string::__set_state()

The function must be static and actually has to do what it is supposed to. It also breaks PHP 8.0
lib/moodlelib.php
lib/tests/moodlelib_test.php