-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Nullable $replacement for ::pcre() fails #241
Comments
Strange is that I have not found any mentions of |
|
Yeah, but |
Or maybe just make the argument obligatory.. |
dg
added a commit
that referenced
this issue
Dec 3, 2020
dg
added a commit
that referenced
this issue
Dec 3, 2020
dg
added a commit
that referenced
this issue
Dec 3, 2020
dg
added a commit
that referenced
this issue
Dec 3, 2020
dg
added a commit
that referenced
this issue
Dec 3, 2020
Can we get a new version released so this gets fixed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.1.4
PHP 8.0.0
Bug Description
Calling
Strings::pcre('preg_replace', ['#\\.#', NULL, '70', -1])
fails withFatal error: Uncaught TypeError: preg_replace(): Argument #2 ($replacement) must be of type array|string, null given
It happens when using
symplify/easy-coding-standard
, but it looks rather like error with PHP 8.0 compatibility innette/utils
.The text was updated successfully, but these errors were encountered: