Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 Deprecated function: preg_split(): Passing null to parameter #2 #695

Closed
0m3r opened this issue May 13, 2022 · 2 comments · Fixed by #696
Closed

PHP 8.1 Deprecated function: preg_split(): Passing null to parameter #2 #695

0m3r opened this issue May 13, 2022 · 2 comments · Fixed by #696

Comments

@0m3r
Copy link
Contributor

0m3r commented May 13, 2022

Deprecated Functionality: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in
/public_html/vendor/mrclay/minify/lib/Minify/CSS/Compressor.php on line 262

In

$pieces = preg_split('/(\'[^\']+\'|"[^"]+")/', $m[1], null, $flags);

        $pieces = preg_split('/(\'[^\']+\'|"[^"]+")/', $m[1], null, $flags);

https://www.php.net/manual/en/function.preg-split.php#refsect1-function.preg-split-parameters

limit
If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1 or 0 means "no limit".

https://www.php.net/manual/en/function.preg-split.php
https://www.drupal.org/project/geshifilter/issues/3262325

0m3r added a commit to 0m3r/minify that referenced this issue May 13, 2022
@glensc
Copy link
Collaborator

glensc commented May 14, 2022

@glensc
Copy link
Collaborator

glensc commented May 14, 2022

https://www.drupal.org/project/geshifilter/issues/3262325 reports different problem, parameter 2, but here is parameter 3 issue in issue body (yet title has parameter 2)

so there parameter 2 problem is not solved and parameter 3 is solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants