We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839e8aa commit b4e90deCopy full SHA for b4e90de
1 file changed
tests/PHPStan/Analyser/nsrt/has-offset-type-bug.php
@@ -105,7 +105,7 @@ public function doFoo2($mixed)
105
public function doBar(\SimpleXMLElement $xml)
106
{
107
if (isset($xml['foo'])) {
108
- assertType("SimpleXMLElement&hasOffset('foo')", $xml['foo']);
+ assertType('SimpleXMLElement', $xml['foo']);
109
assertType("SimpleXMLElement&hasOffset('foo')", $xml);
110
}
111
0 commit comments