Skip to content

Commit b3c7c40

Browse files
tborealisondrejmirtes
authored andcommitted
Incorrect return type for SplFileObject::fgetcsv
Return type should be `array|false` instead of `array|false|null`. See https://www.php.net/manual/en/splfileobject.fgetcsv#refsect1-splfileobject.fgetcsv-returnvalues
1 parent 6f7cadf commit b3c7c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11291,7 +11291,7 @@
1129111291
'SplFileObject::eof' => ['bool'],
1129211292
'SplFileObject::fflush' => ['bool'],
1129311293
'SplFileObject::fgetc' => ['string|false'],
11294-
'SplFileObject::fgetcsv' => ['array|false|null', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
11294+
'SplFileObject::fgetcsv' => ['array|false', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'],
1129511295
'SplFileObject::fgets' => ['string|false'],
1129611296
'SplFileObject::fgetss' => ['string|false', 'allowable_tags='=>'string'],
1129711297
'SplFileObject::flock' => ['bool', 'operation'=>'int', '&w_wouldblock='=>'int'],

0 commit comments

Comments
 (0)