-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
"Undefined variable" even though passed by reference #2026
Comments
iluuu1994
changed the title
"Undefined variable" eventhough passed by reference
"Undefined variable" even though passed by reference
Mar 25, 2019
If it can create a new variable, it should be just |
Why? A reference can be optional or non-optional: |
Please check out PassedByReference class and SignatureMapParser.
User land functions are a separate problem. It was discussed in depth
somewhere, I might be able to find it.
On Mon, 25 Mar 2019 at 13:33, Ilija Tovilo ***@***.***> wrote:
Why? A reference can be optional or non-optional:
https://3v4l.org/3acu7
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2026 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGZuPlbk1QGL49dL92pubZLub_98NaUks5vaMIogaJpZM4cGbL9>
.
--
Ondřej Mirtes
|
#1916
If you can improve this situation without breaking anything that would be
nice 😊
On Mon, 25 Mar 2019 at 13:36, Ondřej Mirtes ***@***.***> wrote:
Please check out PassedByReference class and SignatureMapParser.
User land functions are a separate problem. It was discussed in depth
somewhere, I might be able to find it.
On Mon, 25 Mar 2019 at 13:33, Ilija Tovilo ***@***.***>
wrote:
> Why? A reference can be optional or non-optional:
>
> https://3v4l.org/3acu7
>
> —
> You are receiving this because you commented.
>
>
> Reply to this email directly, view it on GitHub
> <#2026 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAGZuPlbk1QGL49dL92pubZLub_98NaUks5vaMIogaJpZM4cGbL9>
> .
>
--
Ondřej Mirtes
--
Ondřej Mirtes
|
iluuu1994
added a commit
to iluuu1994/phpstan
that referenced
this issue
Mar 25, 2019
iluuu1994
added a commit
to iluuu1994/phpstan
that referenced
this issue
Mar 25, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This piece of code:
https://phpstan.org/r/2afd6c3d-870c-4d24-a53b-33abfcddef53
Produces an error:
I thought the functionMap was wrong but it's correct:
phpstan/src/Reflection/SignatureMap/functionMap.php
Line 8061 in effac12
rw_tag
is defined as a reference.Any clue why this is happening?
The text was updated successfully, but these errors were encountered: