File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,19 @@ class ObjectType implements TypeWithClassName, SubtractableType
6767 use UndecidedComparisonTypeTrait;
6868 use NonGeneralizableTypeTrait;
6969
70- private const EXTRA_OFFSET_CLASSES = ['SimpleXMLElement ' , 'DOMNodeList ' , 'Threaded ' ];
70+ private const EXTRA_OFFSET_CLASSES = [
71+ 'DOMNamedNodeMap ' , // Only read and existence
72+ 'Dom\NamedNodeMap ' , // Only read and existence
73+ 'DOMNodeList ' , // Only read and existence
74+ 'Dom\NodeList ' , // Only read and existence
75+ 'Dom\HTMLCollection ' , // Only read and existence
76+ 'Dom\DtdNamedNodeMap ' , // Only read and existence
77+ 'PDORow ' , // Only read and existence
78+ 'ResourceBundle ' , // Only read
79+ 'FFI\CData ' , // Very funky and weird
80+ 'SimpleXMLElement ' ,
81+ 'Threaded ' ,
82+ ];
7183
7284 private ?Type $ subtractedType ;
7385
You can’t perform that action at this time.
0 commit comments