From a1f40c9caba5004ef921c9eafed07f229db7c864 Mon Sep 17 00:00:00 2001 From: James Gilliland Date: Tue, 1 Nov 2022 09:47:16 -0500 Subject: [PATCH] Fix Spl file handling signatures Update SplFileInfo method signatures and related classes. Fixes #8642 --- dictionaries/CallMap.php | 66 ++++++++++++++--------------- dictionaries/CallMap_historical.php | 66 ++++++++++++++--------------- 2 files changed, 66 insertions(+), 66 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index cf2acbc25..858c659ae 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -13224,24 +13224,24 @@ return [ 'SplFileInfo::__construct' => ['void', 'file_name'=>'string'], 'SplFileInfo::__toString' => ['string'], 'SplFileInfo::__wakeup' => ['void'], -'SplFileInfo::getATime' => ['int'], +'SplFileInfo::getATime' => ['int|false'], 'SplFileInfo::getBasename' => ['string', 'suffix='=>'string'], -'SplFileInfo::getCTime' => ['int'], +'SplFileInfo::getCTime' => ['int|false'], 'SplFileInfo::getExtension' => ['string'], 'SplFileInfo::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplFileInfo::getFilename' => ['string'], -'SplFileInfo::getGroup' => ['int'], -'SplFileInfo::getInode' => ['int'], -'SplFileInfo::getLinkTarget' => ['string'], -'SplFileInfo::getMTime' => ['int'], -'SplFileInfo::getOwner' => ['int'], +'SplFileInfo::getGroup' => ['int|false'], +'SplFileInfo::getInode' => ['int|false'], +'SplFileInfo::getLinkTarget' => ['string|false'], +'SplFileInfo::getMTime' => ['int|false'], +'SplFileInfo::getOwner' => ['int|false'], 'SplFileInfo::getPath' => ['string'], -'SplFileInfo::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], +'SplFileInfo::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], 'SplFileInfo::getPathname' => ['string'], -'SplFileInfo::getPerms' => ['int'], +'SplFileInfo::getPerms' => ['int|false'], 'SplFileInfo::getRealPath' => ['string|false'], -'SplFileInfo::getSize' => ['int'], -'SplFileInfo::getType' => ['string'], +'SplFileInfo::getSize' => ['int|false'], +'SplFileInfo::getType' => ['string|false'], 'SplFileInfo::isDir' => ['bool'], 'SplFileInfo::isExecutable' => ['bool'], 'SplFileInfo::isFile' => ['bool'], @@ -13269,29 +13269,29 @@ return [ 'SplFileObject::ftell' => ['int|false'], 'SplFileObject::ftruncate' => ['bool', 'size'=>'int'], 'SplFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'], -'SplFileObject::getATime' => ['int'], +'SplFileObject::getATime' => ['int|false'], 'SplFileObject::getBasename' => ['string', 'suffix='=>'string'], 'SplFileObject::getChildren' => ['null'], 'SplFileObject::getCsvControl' => ['array'], -'SplFileObject::getCTime' => ['int'], +'SplFileObject::getCTime' => ['int|false'], 'SplFileObject::getCurrentLine' => ['string|false'], 'SplFileObject::getExtension' => ['string'], 'SplFileObject::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplFileObject::getFilename' => ['string'], 'SplFileObject::getFlags' => ['int'], -'SplFileObject::getGroup' => ['int'], -'SplFileObject::getInode' => ['int'], -'SplFileObject::getLinkTarget' => ['string'], +'SplFileObject::getGroup' => ['int|false'], +'SplFileObject::getInode' => ['int|false'], +'SplFileObject::getLinkTarget' => ['string|false'], 'SplFileObject::getMaxLineLen' => ['int'], -'SplFileObject::getMTime' => ['int'], -'SplFileObject::getOwner' => ['int'], +'SplFileObject::getMTime' => ['int|false'], +'SplFileObject::getOwner' => ['int|false'], 'SplFileObject::getPath' => ['string'], -'SplFileObject::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], +'SplFileObject::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], 'SplFileObject::getPathname' => ['string'], -'SplFileObject::getPerms' => ['int'], +'SplFileObject::getPerms' => ['int|false'], 'SplFileObject::getRealPath' => ['false|string'], -'SplFileObject::getSize' => ['int'], -'SplFileObject::getType' => ['string'], +'SplFileObject::getSize' => ['int|false'], +'SplFileObject::getType' => ['string|false'], 'SplFileObject::hasChildren' => ['false'], 'SplFileObject::isDir' => ['bool'], 'SplFileObject::isExecutable' => ['bool'], @@ -13462,29 +13462,29 @@ return [ 'SplTempFileObject::ftell' => ['int'], 'SplTempFileObject::ftruncate' => ['bool', 'size'=>'int'], 'SplTempFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'], -'SplTempFileObject::getATime' => ['int'], +'SplTempFileObject::getATime' => ['int|false'], 'SplTempFileObject::getBasename' => ['string', 'suffix='=>'string'], 'SplTempFileObject::getChildren' => ['null'], 'SplTempFileObject::getCsvControl' => ['array'], -'SplTempFileObject::getCTime' => ['int'], +'SplTempFileObject::getCTime' => ['int|false'], 'SplTempFileObject::getCurrentLine' => ['string'], 'SplTempFileObject::getExtension' => ['string'], 'SplTempFileObject::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplTempFileObject::getFilename' => ['string'], 'SplTempFileObject::getFlags' => ['int'], -'SplTempFileObject::getGroup' => ['int'], -'SplTempFileObject::getInode' => ['int'], -'SplTempFileObject::getLinkTarget' => ['string'], +'SplTempFileObject::getGroup' => ['int|false'], +'SplTempFileObject::getInode' => ['int|false'], +'SplTempFileObject::getLinkTarget' => ['string|false'], 'SplTempFileObject::getMaxLineLen' => ['int'], -'SplTempFileObject::getMTime' => ['int'], -'SplTempFileObject::getOwner' => ['int'], +'SplTempFileObject::getMTime' => ['int|false'], +'SplTempFileObject::getOwner' => ['int|false'], 'SplTempFileObject::getPath' => ['string'], 'SplTempFileObject::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplTempFileObject::getPathname' => ['string'], -'SplTempFileObject::getPerms' => ['int'], -'SplTempFileObject::getRealPath' => ['string'], -'SplTempFileObject::getSize' => ['int'], -'SplTempFileObject::getType' => ['string'], +'SplTempFileObject::getPerms' => ['int|false'], +'SplTempFileObject::getRealPath' => ['string|false'], +'SplTempFileObject::getSize' => ['int|false'], +'SplTempFileObject::getType' => ['string|false'], 'SplTempFileObject::hasChildren' => ['bool'], 'SplTempFileObject::isDir' => ['bool'], 'SplTempFileObject::isExecutable' => ['bool'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 290bf7087..959022455 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -7757,24 +7757,24 @@ return [ 'SplFileInfo::__construct' => ['void', 'file_name'=>'string'], 'SplFileInfo::__toString' => ['string'], 'SplFileInfo::__wakeup' => ['void'], - 'SplFileInfo::getATime' => ['int'], + 'SplFileInfo::getATime' => ['int|false'], 'SplFileInfo::getBasename' => ['string', 'suffix='=>'string'], - 'SplFileInfo::getCTime' => ['int'], + 'SplFileInfo::getCTime' => ['int|false'], 'SplFileInfo::getExtension' => ['string'], 'SplFileInfo::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplFileInfo::getFilename' => ['string'], - 'SplFileInfo::getGroup' => ['int'], - 'SplFileInfo::getInode' => ['int'], - 'SplFileInfo::getLinkTarget' => ['string'], - 'SplFileInfo::getMTime' => ['int'], - 'SplFileInfo::getOwner' => ['int'], + 'SplFileInfo::getGroup' => ['int|false'], + 'SplFileInfo::getInode' => ['int|false'], + 'SplFileInfo::getLinkTarget' => ['string|false'], + 'SplFileInfo::getMTime' => ['int|false'], + 'SplFileInfo::getOwner' => ['int|false'], 'SplFileInfo::getPath' => ['string'], - 'SplFileInfo::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], + 'SplFileInfo::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], 'SplFileInfo::getPathname' => ['string'], - 'SplFileInfo::getPerms' => ['int'], + 'SplFileInfo::getPerms' => ['int|false'], 'SplFileInfo::getRealPath' => ['string|false'], - 'SplFileInfo::getSize' => ['int'], - 'SplFileInfo::getType' => ['string'], + 'SplFileInfo::getSize' => ['int|false'], + 'SplFileInfo::getType' => ['string|false'], 'SplFileInfo::isDir' => ['bool'], 'SplFileInfo::isExecutable' => ['bool'], 'SplFileInfo::isFile' => ['bool'], @@ -7803,9 +7803,9 @@ return [ 'SplFileObject::ftell' => ['int|false'], 'SplFileObject::ftruncate' => ['bool', 'size'=>'int'], 'SplFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'], - 'SplFileObject::getATime' => ['int'], + 'SplFileObject::getATime' => ['int|false'], 'SplFileObject::getBasename' => ['string', 'suffix='=>'string'], - 'SplFileObject::getCTime' => ['int'], + 'SplFileObject::getCTime' => ['int|false'], 'SplFileObject::getChildren' => ['null'], 'SplFileObject::getCsvControl' => ['array'], 'SplFileObject::getCurrentLine' => ['string|false'], @@ -7813,19 +7813,19 @@ return [ 'SplFileObject::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplFileObject::getFilename' => ['string'], 'SplFileObject::getFlags' => ['int'], - 'SplFileObject::getGroup' => ['int'], - 'SplFileObject::getInode' => ['int'], - 'SplFileObject::getLinkTarget' => ['string'], - 'SplFileObject::getMTime' => ['int'], + 'SplFileObject::getGroup' => ['int|false'], + 'SplFileObject::getInode' => ['int|false'], + 'SplFileObject::getLinkTarget' => ['string|false'], 'SplFileObject::getMaxLineLen' => ['int'], - 'SplFileObject::getOwner' => ['int'], + 'SplFileObject::getMTime' => ['int|false'], + 'SplFileObject::getOwner' => ['int|false'], 'SplFileObject::getPath' => ['string'], - 'SplFileObject::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], + 'SplFileObject::getPathInfo' => ['SplFileInfo|null', 'class_name='=>'string'], 'SplFileObject::getPathname' => ['string'], - 'SplFileObject::getPerms' => ['int'], + 'SplFileObject::getPerms' => ['int|false'], 'SplFileObject::getRealPath' => ['false|string'], - 'SplFileObject::getSize' => ['int'], - 'SplFileObject::getType' => ['string'], + 'SplFileObject::getSize' => ['int|false'], + 'SplFileObject::getType' => ['string|false'], 'SplFileObject::hasChildren' => ['false'], 'SplFileObject::isDir' => ['bool'], 'SplFileObject::isExecutable' => ['bool'], @@ -7995,9 +7995,9 @@ return [ 'SplTempFileObject::ftell' => ['int'], 'SplTempFileObject::ftruncate' => ['bool', 'size'=>'int'], 'SplTempFileObject::fwrite' => ['int', 'string'=>'string', 'length='=>'int'], - 'SplTempFileObject::getATime' => ['int'], + 'SplTempFileObject::getATime' => ['int|false'], 'SplTempFileObject::getBasename' => ['string', 'suffix='=>'string'], - 'SplTempFileObject::getCTime' => ['int'], + 'SplTempFileObject::getCTime' => ['int|false'], 'SplTempFileObject::getChildren' => ['null'], 'SplTempFileObject::getCsvControl' => ['array'], 'SplTempFileObject::getCurrentLine' => ['string'], @@ -8005,19 +8005,19 @@ return [ 'SplTempFileObject::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplTempFileObject::getFilename' => ['string'], 'SplTempFileObject::getFlags' => ['int'], - 'SplTempFileObject::getGroup' => ['int'], - 'SplTempFileObject::getInode' => ['int'], - 'SplTempFileObject::getLinkTarget' => ['string'], - 'SplTempFileObject::getMTime' => ['int'], + 'SplTempFileObject::getGroup' => ['int|false'], + 'SplTempFileObject::getInode' => ['int|false'], + 'SplTempFileObject::getLinkTarget' => ['string|false'], 'SplTempFileObject::getMaxLineLen' => ['int'], - 'SplTempFileObject::getOwner' => ['int'], + 'SplTempFileObject::getMTime' => ['int|false'], + 'SplTempFileObject::getOwner' => ['int|false'], 'SplTempFileObject::getPath' => ['string'], 'SplTempFileObject::getPathInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplTempFileObject::getPathname' => ['string'], - 'SplTempFileObject::getPerms' => ['int'], - 'SplTempFileObject::getRealPath' => ['string'], - 'SplTempFileObject::getSize' => ['int'], - 'SplTempFileObject::getType' => ['string'], + 'SplTempFileObject::getPerms' => ['int|false'], + 'SplTempFileObject::getRealPath' => ['string|false'], + 'SplTempFileObject::getSize' => ['int|false'], + 'SplTempFileObject::getType' => ['string|false'], 'SplTempFileObject::hasChildren' => ['bool'], 'SplTempFileObject::isDir' => ['bool'], 'SplTempFileObject::isExecutable' => ['bool'],