-
Notifications
You must be signed in to change notification settings - Fork 112
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
[REF][PHP8.1] Fix some further places where passing in NULL is deprec… #348
Conversation
(Standard links)
|
IDS/Converter.php
Outdated
@@ -158,7 +158,7 @@ public static function convertFromJSCharcode($value) | |||
if (preg_match_all('/\d*[+-\/\* ]\d+/', $char, $matches)) { | |||
$match = preg_split('/(\W?\d+)/', | |||
(implode('', $matches[0])), | |||
null, | |||
'', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3rd param is an int for preg_split?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise PR looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah good point will update to -1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fixed now @demeritcowboy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. It turns out -1 and 0 mean the same thing in that spot (previously null would have been cast to 0).
…ated in php8.1 Fix parameter for preg_split
e6b489a
to
27401fb
Compare
Jenkins retest this please. (Fails have been seen before I think as intermittent time-related, but let's check.) |
…ated in php8.1
ping @eileenmcnaughton @demeritcowboy @totten @colemanw