Skip to content

PHP 8.2: Use standalone true types#117

Merged
s2x merged 1 commit intomasterfrom
php82-standalone-types
Apr 12, 2026
Merged

PHP 8.2: Use standalone true types#117
s2x merged 1 commit intomasterfrom
php82-standalone-types

Conversation

@s2x
Copy link
Copy Markdown
Collaborator

@s2x s2x commented Apr 12, 2026

Summary

  • Change AlwaysRebootStrategy::shouldReboot() return type from bool to true
  • Change DefaultResponseStrategy::supports() return type from bool to true

PHP 8.2 allows using standalone true/false/null as return types since they are subtypes of bool.

Changes

  • Interfaces unchanged (still declare bool - correct)
  • Only implementations that always return true now declare : true

@s2x s2x merged commit 3192336 into master Apr 12, 2026
21 checks passed
@s2x s2x deleted the php82-standalone-types branch April 12, 2026 05:53
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