MDL-76413 lib: Fixed PHP 8.2 callable deprecations in minify

This commit is contained in:
raortegar
2023-02-13 10:35:38 +01:00
parent 0e715b0c52
commit d7fd2c788a
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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;
+6
View File
@@ -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.