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:
parent
cd8ba5cd88
commit
84d327678b
@ -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'],
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user