User tests: Successful: Unsuccessful:
Pull Request for Issue # none, found and fixed directly here.
Fixes PHP 8.1 incompatibility Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in libraries/src/Document/HtmlDocument.php on line 595
Actually, null would converts to 0, but it's the same as the function's default value of -1 that was expected there.
See https://www.php.net/manual/en/function.preg-split.php :
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".
Open administrator backend in debug mode (with all incl. deprecation warnings turned on), and see this warning, then apply patch and see it disappear.
Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in libraries/src/Document/HtmlDocument.php on line 595
warning disappeared.
none.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
R2C
Thanks merging.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-23 15:03:02 |
Closed_By | ⇒ | zero-24 | |
Labels |
Added:
?
?
?
|
I have tested this item✅ successfully on 81ca5b3
Code review with respect to PHP documentation.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36775.