1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

usleep(0) is valid

Similar to ef9858c458.

usleep() only throws the value is < 0:
```
Uncaught ValueError: usleep(): Argument #1 ($microseconds) must be greater than or equal to 0
```
This commit is contained in:
Thomas Gerbet 2021-11-22 11:56:56 +01:00
parent cd8ba5cd88
commit 84d327678b
2 changed files with 2 additions and 2 deletions

View File

@ -15151,7 +15151,7 @@ return [
'urlencode' => ['string', 'string'=>'string'],
'use_soap_error_handler' => ['bool', 'enable='=>'bool'],
'user_error' => ['void', 'message'=>'string', 'error_level='=>'int'],
'usleep' => ['void', 'microseconds'=>'positive-int'],
'usleep' => ['void', 'microseconds'=>'positive-int|0'],
'usort' => ['bool', '&rw_array'=>'array', 'callback'=>'callable(mixed,mixed):int'],
'utf8_decode' => ['string', 'string'=>'string'],
'utf8_encode' => ['string', 'string'=>'string'],

View File

@ -16189,7 +16189,7 @@ return [
'urlencode' => ['string', 'string'=>'string'],
'use_soap_error_handler' => ['bool', 'enable='=>'bool'],
'user_error' => ['void', 'message'=>'string', 'error_level='=>'int'],
'usleep' => ['void', 'microseconds'=>'positive-int'],
'usleep' => ['void', 'microseconds'=>'positive-int|0'],
'usort' => ['bool', '&rw_array'=>'array', 'callback'=>'callable(mixed,mixed):int'],
'utf8_decode' => ['string', 'string'=>'string'],
'utf8_encode' => ['string', 'string'=>'string'],