diff --git a/lib/minify/matthiasmullie-minify/src/JS.php b/lib/minify/matthiasmullie-minify/src/JS.php index 1e1679740f8..418f34e4257 100644 --- a/lib/minify/matthiasmullie-minify/src/JS.php +++ b/lib/minify/matthiasmullie-minify/src/JS.php @@ -124,7 +124,7 @@ class JS extends Minify */ public function __construct() { - call_user_func_array(array('parent', '__construct'), func_get_args()); + call_user_func_array(array('\\MatthiasMullie\Minify\\Minify', '__construct'), func_get_args()); $dataDir = __DIR__.'/../data/js/'; $options = FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES; diff --git a/lib/minify/readme_moodle.txt b/lib/minify/readme_moodle.txt index c7fbc85c696..c20deac59f4 100644 --- a/lib/minify/readme_moodle.txt +++ b/lib/minify/readme_moodle.txt @@ -20,3 +20,9 @@ MDL-68191: https://github.com/matthiasmullie/minify/issues/317 is a bug that sto a few seconds. This is one of the reasons Behat runs in the browser are so slow.) Whenever this library is updated check if the fix is included and remove this note. NOTE: As of 2020/12/08, only the first commit was brought into Moodle + +Note: + * 2023-02-10 Apply commit https://github.com/matthiasmullie/minify/commit/aa8010c2fa3c26f018874141d36025085754abff + to avoid PHP 8.2 deprecations. See MDL-76413 for more details. + Since new version already have this fix if someone executing the upgrading version and + it has already the patch please ignore this note.