Skip to content

Fix return type of bzdecompress()#4088

Merged
ondrejmirtes merged 1 commit intophpstan:1.12.xfrom
jlherren:patch-2
Jul 17, 2025
Merged

Fix return type of bzdecompress()#4088
ondrejmirtes merged 1 commit intophpstan:1.12.xfrom
jlherren:patch-2

Conversation

@jlherren
Copy link
Copy Markdown
Contributor

It mostly returns int error codes on failures and false only when it cannot initialize.

Source: php-src, test code: var_dump(bzdecompress("invalid"));

@ondrejmirtes ondrejmirtes merged commit ef9aae2 into phpstan:1.12.x Jul 17, 2025
312 of 313 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