// test: assert on property instanceof narrows property type
// feature: completion
// Adapted from phpactor function/assert.properties.test
// expect: barMethod(
---
<?php
class Bar {
public function barMethod(): void {}
}
class Foobar {
public $foo;
public function test(): void {
assert($this->foo instanceof Bar);
$this->foo-><>
}
}