1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
psalm/tests/stubs/polyfill.php
2019-03-23 14:27:54 -04:00

25 lines
381 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
*
* @return int
*/
function new_random_bytes($bytes)
{
return 5;
}
}