Closed 0m3r closed 1 year ago
The first preg_replace_callback
return NULL
Return Values¶ preg_replace_callback() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is null. If matches are found, the new subject will be returned, otherwise subject will be returned unchanged.
because
protected function _removeScriptCB($m)
{
...
// minify
$minifier = $this->_jsMinifier
? $this->_jsMinifier
: 'trim';
$js = call_user_func($minifier, $js);
throw exception
| string(48) "JSMin: Unterminated RegExp at byte 2320: /ko--> "
| string(2076) "#0 /var/www/vhosts/xxx.nl/httpdocs/vendor/mrclay/jsmin-php/src/JSMin/JSMin.php(150): JSMin\JSMin->action()
| #1 /var/www/vhosts/xxx.nl/httpdocs/vendor/mrclay/jsmin-php/src/JSMin/JSMin.php(84): JSMin\JSMin->min()
| #2 [internal function]: JSMin\JSMin::minify()
Send pull request with your proposed fix
A lot of error messages like this are logged into the log file
Exception: Deprecated Functionality: preg_replace_callback(): Passing null to parameter 3 (subject) of type array|string is deprecated in /var/www/vhosts/oasestore.nl/httpdocs/vendor/mrclay/minify/lib/Minify/HTML.php on line 111