You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `getType()` method along with FNSR enabled
waits for the Expr analysis to be completed
in order to evaluate the type at the right place in the code.
This prevents tricky bugs when reasoning about code like
`doFoo($a = 1, $a)`.
Sometimes this is counter-productive because we actually want
to use the current Scope object contents to resolve the Expr type.
For example if we're interested in the true type of `$foo` in `isset($foo)`.
In these cases use `getScopeType()` and `getScopeNativeType`.
0 commit comments