Skip to content

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
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