-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Add support for generating optimizer function info from stubs #7367
Conversation
1205621
to
769d0a9
Compare
19d0b56
to
cf446cb
Compare
As pointed out on GH-7367, these have not been adjusted for object constant support. Now the only thing the type info specifies is that array of ref is not possible.
83fc011
to
e165a3a
Compare
47f7429
to
9983ad1
Compare
36d7935
to
87d8fa4
Compare
Zend/zend_builtin_functions.stub.php
Outdated
/** @return string|array|object|null */ | ||
/** | ||
* @return string|array<int, string|object>|object|null | ||
* @refcount N |
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.
Similar to the @refcount 0
case, as @refcount N
is the default state for non-scalar types, can we omit it and generate the func info based on presence of more specific return type?
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.
Can these @refcount N
lines be dropped after your last change?
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.
Yeah, I'll do that, thanks for pointing them out! Furthermore, I could forbid the addition of @refcount 1
and @refcount N
. Another question I had: what to do with functions with void
and never
return type? Can I disallow adding a refcount (both implicitly and explicitly) to them?
I'll rebase to master soon.
e66c503
to
a6ad823
Compare
a6ad823
to
11f862a
Compare
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.
Tests fail due to duplicate proc_open entry.
b22026b
to
9956594
Compare
…PHPDoc return type != native return type
9956594
to
460b202
Compare
Pinging @ondrejmirtes as you might be interested in the array-related PHPDoc changes :) |
@kocsismate Thank you, I'll look into it :) |
No description provided.