-
Couldn't load subscription status.
- Fork 8k
int|float for sleep #13401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
int|float for sleep #13401
Changes from all commits
c482180
91dec0f
25bd8dc
e2f096e
3193a88
c50d9bb
2ebbc5f
a928da9
0ee2341
d64a8cc
b617b44
473f091
8b42db6
f54b56b
6a5bed4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1966,7 +1966,7 @@ function getopt(string $short_options, array $long_options = [], &$rest_index = | |
|
|
||
| function flush(): void {} | ||
|
|
||
| function sleep(int $seconds): int {} | ||
| function sleep(int|float $seconds): int|float {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. accepting float should be enough, int is accepted by float type even with strict types mode |
||
|
|
||
| function usleep(int $microseconds): void {} | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.