From fb04c0bc7368e06a3932f523e70dbd835f31af11 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 14 Oct 2021 20:50:41 +0200 Subject: [PATCH] More precise dirname signature --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 01f5222db1..52be86f48c 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -1855,7 +1855,7 @@ 'DirectoryIterator::setFileClass' => ['void', 'class_name='=>'string'], 'DirectoryIterator::setInfoClass' => ['void', 'class_name='=>'string'], 'DirectoryIterator::valid' => ['bool'], -'dirname' => ['string', 'path'=>'string', 'levels='=>'int'], +'dirname' => ['string', 'path'=>'string', 'levels='=>'positive-int'], 'disk_free_space' => ['float|false', 'path'=>'string'], 'disk_total_space' => ['float|false', 'path'=>'string'], 'diskfreespace' => ['float|false', 'path'=>'string'],