Skip to content

Commit

Permalink
Merge pull request #226 from fezfez/fixphp8
Browse files Browse the repository at this point in the history
fix #225
  • Loading branch information
Kharhamel authored Jul 10, 2020
2 parents 85e21ee + 6377548 commit 9f27717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion generated/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ function socket_write($socket, string $buffer, int $length = 0): int
* @throws SocketsException
*
*/
function socket_wsaprotocol_info_export(resource $socket, int $target_pid): string
function socket_wsaprotocol_info_export($socket, int $target_pid): string
{
error_clear_last();
$result = \socket_wsaprotocol_info_export($socket, $target_pid);
Expand Down
2 changes: 2 additions & 0 deletions generator/src/PhpStanFunctions/PhpStanType.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function getSignatureType(?int $errorType = null): string
$type = 'array'; //typed array has to be untyped
} elseif (\strpos($type, '[]') !== false) {
$type = 'iterable'; //generics cannot be typehinted and have to be turned into iterable
} elseif (\strpos($type, 'resource') !== false) {
$type = ''; // resource cant be typehinted
}
}

Expand Down

0 comments on commit 9f27717

Please sign in to comment.