-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/standard: change highlight_string()
/print_r
stub return type from string|bool
to string|true
#14959
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
ext/standard: change highlight_string()
/print_r
stub return type from string|bool
to string|true
#14959
Conversation
I think these functions use the same kind of construction and might therefore have the same bug: |
I think you are right about |
Thank you @staabm, |
highlight_string()
return type from string|bool
to string|false
highlight_string()
/print_r
stub return type from string|bool
to string|false
highlight_string()
/print_r
stub return type from string|bool
to string|false
highlight_string()
/print_r
stub return type from string|bool
to string|true
When changing the stub files you need to rerun |
1d3e315
to
5138ff5
Compare
5138ff5
to
9d3246d
Compare
Thank you, I indeed had forgotten to build arginfo. Fixed now. |
Right, In this case you also need to pass |
9d3246d
to
5ee0f35
Compare
TIL 🙏. Force-pushed with |
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.
LGTM Thanks!
highlight_string
either returnsstring
if the$return
parameter istrue
, or always returnstrue
. We can now reflect this in the stubs.