From 9a036cb4aba9ba4dade2eb9c5bd9975b37dfad04 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Fri, 18 Aug 2017 16:51:34 -0400 Subject: [PATCH] Fix resource signatures --- src/Psalm/CallMap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index 0fe7cb9af..10e707adf 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -2252,8 +2252,8 @@ return [ 'fpassthru' => ['int', 'fp'=>'resource'], 'fprintf' => ['int', 'stream'=>'resource', 'format'=>'string', 'arg1='=>'', '...='=>''], 'fputcsv' => ['int', 'fp'=>'resource', 'fields'=>'array', 'delimiter='=>'string', 'enclosure='=>'string', 'escape_char='=>'string'], -'fputs' => ['int', 'fp'=>'resource', 'str'=>'string', 'length='=>'int'], -'fread' => ['string', 'fp'=>'resource', 'length'=>'int'], +'fputs' => ['int|false', 'fp'=>'resource', 'str'=>'string', 'length='=>'int'], +'fread' => ['string|false', 'fp'=>'resource', 'length'=>'int'], 'frenchtojd' => ['int', 'month'=>'int', 'day'=>'int', 'year'=>'int'], 'fribidi_log2vis' => ['string', 'str'=>'string', 'direction'=>'string', 'charset'=>'int'], 'fscanf' => ['array|int', 'stream'=>'resource', 'format'=>'string', '&...vars='=>'string|int|float'], @@ -8178,7 +8178,7 @@ return [ 'socket_set_option' => ['bool', 'socket'=>'', 'level'=>'int', 'optname'=>'int', 'optval'=>'int|array'], 'socket_shutdown' => ['bool', 'socket'=>'', 'how='=>'int'], 'socket_strerror' => ['string', 'errno'=>'int'], -'socket_write' => ['int', 'socket'=>'', 'buf'=>'string', 'length='=>'int'], +'socket_write' => ['int|false', 'socket'=>'', 'buf'=>'string', 'length='=>'int'], 'solid_fetch_prev' => ['bool', 'result_id'=>''], 'SolrClient::addDocuments' => ['', 'docs'=>'array', 'allowdups='=>'bool', 'commitwithin='=>'int'], 'SolrClient::addDocument' => ['SolrUpdateResponse', 'doc'=>'solrinputdocument', 'allowdups='=>'bool', 'commitwithin='=>'int'],