Skip to content
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

More precise ignore_user_abort() return type #2489

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 26, 2023

as we recently stumbled over this functions return type I figured it would be helpful to cover this more precisely in PHPStan.

The setter expects a bool, but the getter returns a int.

https://3v4l.org/jmCa8
https://www.php.net/manual/en/function.ignore-user-abort.php

@staabm staabm changed the base branch from 1.11.x to 1.10.x June 26, 2023 09:27
@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@ondrejmirtes ondrejmirtes merged commit 8937f3e into phpstan:1.10.x Jun 26, 2023
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the ignore_user_abort branch June 27, 2023 03:38
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.

3 participants