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

Fix null argument to preg_split #696

Merged
merged 1 commit into from
May 14, 2022
Merged

Fix null argument to preg_split #696

merged 1 commit into from
May 14, 2022

Conversation

0m3r
Copy link
Contributor

@0m3r 0m3r commented May 13, 2022

Fix null argument to preg_split

Deprecated Functionality: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated

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".

Refs:

Fixes #695

@glensc
Copy link
Collaborator

glensc commented May 14, 2022

You should put details to commit and pull request not create clickbait trait here.

editing your details here.

Deprecated Functionality: preg_split(): Passing null to parameter mrclay#3 ($limit) of type int is deprecated

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".

Refs:
- https://www.drupal.org/project/geshifilter/issues/3262325

Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
@glensc glensc changed the title Fix #695 Fix null argument to preg_split May 14, 2022
@glensc glensc merged commit 2226a6a into mrclay:master May 14, 2022
@glensc
Copy link
Collaborator

glensc commented May 14, 2022

Released as 3.0.12

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 this pull request may close these issues.

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