From bfae4af0300418bb805feda029b4d997db7131fc Mon Sep 17 00:00:00 2001 From: Teemu Koskinen Date: Wed, 17 Jun 2020 16:29:23 +0300 Subject: [PATCH] tidyNode->child will be null if the node does not have any children (#3599) https://github.com/php/php-src/blob/master/ext/tidy/tidy.c#L696 --- src/Psalm/Internal/PropertyMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/PropertyMap.php b/src/Psalm/Internal/PropertyMap.php index 687b555587e..348df7daf0f 100644 --- a/src/Psalm/Internal/PropertyMap.php +++ b/src/Psalm/Internal/PropertyMap.php @@ -326,7 +326,7 @@ 'proprietary' => 'bool', 'id' => 'int', 'attribute' => 'array', - 'child' => 'array', + 'child' => '?array', ], 'recursivecachingiterator' => [ 'name' => 'string',