-
-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
It looks like the PHP8 behaviour for str_contains
actually silently accepts a null value (casting it to the empty string), whereas the polyfill doesn't. See this comparison on 3v4l, where you can see that the polyfill throws a TypeError but PHP8 doesn't. The same is probably true for the other str methods, but I haven't confirmed it yet.
Happy to send a PR (possibly just easiest to remove the types from the params?)
Metadata
Metadata
Assignees
Labels
No labels