From e58274acaa82c7508fb8b91ca28fa53191c48477 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Wed, 11 Apr 2018 15:11:14 -0400 Subject: [PATCH] Fix #665 - callmap for SplFileObject::fgetcsv --- src/Psalm/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index edbd9be5b..35eeb63ce 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -11034,7 +11034,7 @@ return [ 'SplFileObject::eof' => ['bool'], 'SplFileObject::fflush' => ['bool'], 'SplFileObject::fgetc' => ['string|false'], -'SplFileObject::fgetcsv' => ['array', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'], +'SplFileObject::fgetcsv' => ['?array|false', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'], 'SplFileObject::fgets' => ['string'], 'SplFileObject::fgetss' => ['string', 'allowable_tags='=>'string'], 'SplFileObject::flock' => ['bool', 'operation'=>'int', '&w_wouldblock='=>'int'],