Skip to content

Update eio function return type#4124

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:eio
Jul 21, 2025
Merged

Update eio function return type#4124
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:eio

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

All the eio_ function return false on failure.

The description say resource as https://www.php.net/manual/en/function.eio-busy.php#refsect1-function.eio-busy-description
but everytime it's say it can return false on failure
https://www.php.net/manual/en/function.eio-busy.php#refsect1-function.eio-busy-returnvalues

(On the phpstorm-stubs, it was documented resource|bool but I also updated the return type in JetBrains/phpstorm-stubs#1759)

@ondrejmirtes ondrejmirtes merged commit 1768207 into phpstan:2.1.x Jul 21, 2025
415 of 420 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants