// test: instanceof with namespaced types resolves correctly
// feature: completion
// Adapted from phpactor if-statement/namespace.test
// expect: bazMethod(
// expect: booMethod(
---
<?php
namespace Barfoo;
class Baz {
public function bazMethod(): void {}
}
class Boo {
public function booMethod(): void {}
}
function test($foo): void {
if ($foo instanceof Baz || $foo instanceof Boo) {
$foo-><>
}
}