diff --git a/resources/functionMap.php b/resources/functionMap.php
index 80c57788d6..f82579876d 100644
--- a/resources/functionMap.php
+++ b/resources/functionMap.php
@@ -11556,7 +11556,7 @@
 'SplFileInfo::getMTime' => ['__benevolent<int|false>'],
 'SplFileInfo::getOwner' => ['__benevolent<int|false>'],
 'SplFileInfo::getPath' => ['string'],
-'SplFileInfo::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'],
+'SplFileInfo::getPathInfo' => ['__benevolent<SplFileInfo|null>', 'class_name='=>'string'],
 'SplFileInfo::getPathname' => ['string'],
 'SplFileInfo::getPerms' => ['__benevolent<int|false>'],
 'SplFileInfo::getRealPath' => ['__benevolent<string|false>'],