1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00
psalm/tests/fixtures/stubs/polyfill.php
orklah db45ff1ba4
More return types (#4173)
* add native return types

* redundant phpdoc
2021-01-29 11:38:57 +01:00

24 lines
367 B
PHP

<?php
if (!function_exists('random_bytes')) {
/**
* @param int $bytes
*
* @return void
*/
function random_bytes($bytes)
{
throw new \Exception('bad');
}
}
if (!function_exists('new_random_bytes')) {
/**
* @param int $bytes
*
*/
function new_random_bytes($bytes): int
{
return 5;
}
}