We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21fbbd commit d267e51Copy full SHA for d267e51
tests/PHPStan/Analyser/data/object-shape.php
@@ -54,6 +54,8 @@ public function testGenerics()
54
{
55
$o = (object) ['foo' => 1, 'bar' => new \Exception()];
56
assertType('object{foo: 1, bar: Exception}&stdClass', $o);
57
+ assertType('1', $o->foo);
58
+ assertType('Exception', $o->bar);
59
60
assertType('Exception', $this->generics($o));
61
}
0 commit comments