From 603648f930baaed699f99a6409fc8c3b460d7029 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Thu, 26 Sep 2024 12:16:11 +0200 Subject: [PATCH 1/2] Update functionMap.php for SplFileInfo::getPathInfo return type SplFileInfo::getPathInfo can return null as per documentation https://www.php.net/manual/en/splfileinfo.getpathinfo.php --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index b79549a45d..8779e00880 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -11556,7 +11556,7 @@ 'SplFileInfo::getMTime' => ['__benevolent'], 'SplFileInfo::getOwner' => ['__benevolent'], 'SplFileInfo::getPath' => ['string'], -'SplFileInfo::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], +'SplFileInfo::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], 'SplFileInfo::getPathname' => ['string'], 'SplFileInfo::getPerms' => ['__benevolent'], 'SplFileInfo::getRealPath' => ['__benevolent'], From 40d06b38bd1365cdc41c688522d102356516c924 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Mon, 30 Sep 2024 20:42:53 +0200 Subject: [PATCH 2/2] Use benevolent type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondřej Mirtes --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 8779e00880..b47d852989 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -11556,7 +11556,7 @@ 'SplFileInfo::getMTime' => ['__benevolent'], 'SplFileInfo::getOwner' => ['__benevolent'], 'SplFileInfo::getPath' => ['string'], -'SplFileInfo::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], +'SplFileInfo::getPathInfo' => ['__benevolent', 'class_name='=>'string'], 'SplFileInfo::getPathname' => ['string'], 'SplFileInfo::getPerms' => ['__benevolent'], 'SplFileInfo::getRealPath' => ['__benevolent'],