From 681da41f0f523adb82244e9c05de3c07f0e58a23 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 28 Nov 2017 22:56:28 -0500 Subject: [PATCH] Allow fsockopen to return false, fixes #353 --- 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 9b169778f..b67a9eb7c 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -2279,7 +2279,7 @@ return [ 'fribidi_log2vis' => ['string', 'str'=>'string', 'direction'=>'string', 'charset'=>'int'], 'fscanf' => ['array|int', 'stream'=>'resource', 'format'=>'string', '&...w_vars='=>'string|int|float'], 'fseek' => ['int', 'fp'=>'resource', 'offset'=>'int', 'whence='=>'int'], -'fsockopen' => ['resource', 'hostname'=>'string', 'port='=>'int', '&w_errno='=>'int', '&w_errstr='=>'string', 'timeout='=>'float'], +'fsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_errno='=>'int', '&w_errstr='=>'string', 'timeout='=>'float'], 'fstat' => ['array', 'fp'=>'resource'], 'ftell' => ['int', 'fp'=>'resource'], 'ftok' => ['int', 'pathname'=>'string', 'proj'=>'string'],