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
input:4: PhanUnreferencedPublicMethod Possibly zero references to public method \Foo::test()
input:10: PhanDebugAnnotation @phan-debug-var requested for variable $a - it has union type \anonymous_class_b2cc6026(real=object)
input:16: PhanUndeclaredClassMethod Call to method test from undeclared class \anonymous_class_b2cc6026
I would expect no errors, as $a is always a subclass of Foo.
The errors do not occur when using an if() statement instead of ternary, or when not using anonymous classes:
The following code:
(demo)
Results in the following errors being reported:
I would expect no errors, as
$a
is always a subclass ofFoo
.The errors do not occur when using an
if()
statement instead of ternary, or when not using anonymous classes:(demo)
(demo)
(tested at https://phan.github.io/demo/ – Phan 5.4.1)
The text was updated successfully, but these errors were encountered: