From 6c7d1b4e64f2782cd11e1d3bcd9abec99fece3d7 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Wed, 29 Jan 2020 23:53:47 -0500 Subject: [PATCH] Ignore nullable return DomNodeList/DomNameNodeMap::item --- src/Psalm/Internal/Stubs/CoreGenericClasses.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psalm/Internal/Stubs/CoreGenericClasses.php b/src/Psalm/Internal/Stubs/CoreGenericClasses.php index 9dd437be4..150f0faa3 100644 --- a/src/Psalm/Internal/Stubs/CoreGenericClasses.php +++ b/src/Psalm/Internal/Stubs/CoreGenericClasses.php @@ -942,6 +942,7 @@ class DOMNodeList implements Traversable, Countable { /** * @param int $index * @return TNode|null + * @psalm-ignore-nullable-return */ public function item($index) {} } @@ -968,6 +969,7 @@ class DOMNamedNodeMap implements Traversable, Countable { /** * @return TNode|null + * @psalm-ignore-nullable-return */ public function item(int $index): ?DOMNode {} }