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
No issues reported. Or possibly one about method "func" not being known to exist on any of the types involved.
Actual results
This strange issue is reported.
test.php:7 PhanEmptyFQSENInClasslike Possible use of a classlike '\' with an empty FQSEN.
Other notes
This also happens if the types are declared via phpdoc or by @phan-var.
If you instead do like
$var2 = [ $var, 'func' ];
is_callable( $var2 );
it doesn't report the unexpected PhanEmptyFQSENInClasslike issue. But I think that may be because it's not really checking $var2 at all rather than that it's doing the right thing with it.
The text was updated successfully, but these errors were encountered:
Phan version: 5.4.3, v5.x-dev 790e4f7
Reproduction
phan --init
, then run phan on the file.Expected results
No issues reported. Or possibly one about method "func" not being known to exist on any of the types involved.
Actual results
This strange issue is reported.
Other notes
This also happens if the types are declared via phpdoc or by
@phan-var
.If you instead do like
it doesn't report the unexpected PhanEmptyFQSENInClasslike issue. But I think that may be because it's not really checking
$var2
at all rather than that it's doing the right thing with it.The text was updated successfully, but these errors were encountered: