Skip to content

avoid conflicting definitions for readgzfile#716

Merged
shish merged 1 commit intomasterfrom
pr716
Jan 31, 2026
Merged

avoid conflicting definitions for readgzfile#716
shish merged 1 commit intomasterfrom
pr716

Conversation

@shish
Copy link
Collaborator

@shish shish commented Jan 31, 2026

  • official docs don't give it a type at all
  • in php 8.1-8.4 it defaulted to "0"
  • in php 8.5 it defaults to "false"

phpstan 2.1's database says it's an int, but assigning false to int is a syntax error, so let's override that to leave the type unspecified, which is compatible with both 0 and false

- official docs don't give it a type at all
- in php 8.1-8.4 it defaulted to "0"
- in php 8.5 it defaults to "false"

phpstan 2.1's database says it's an int, but assigning `false` to int is a syntax error, so let's override that to leave the type unspecified, which is compatible with both `0` and `false`
@shish shish merged commit 2c0e00e into master Jan 31, 2026
10 checks passed
@shish shish deleted the pr716 branch March 3, 2026 12:21
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.

1 participant