Skip to content

Conversation

@WyriHaximus
Copy link
Member

This builds on top of #264 porting that change to v2.

This builds on top of reactphp#264 porting that change to v2.
Copy link
Member

@clueclue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WyriHaximus Changes LGTM 👍

That said, this likely won't have a noticeable impact. As discussed earlier today, this would only affect Promise v2, which does not even have the PHP 8.4+ nullable types from #260 addressed due to BC concerns. For Promise v3, both fixes have already been merged, with a release for PHP 8.5+ outstanding this week as discussed in #264.

Applying these changes to Promise v2 shouldn't cause any harm and I agree the old syntax looks kind of weird, but it's unlikely we'll be able to support PHP 8.4+, let alone PHP 8.5+, on Promise v2 anyway.

@clueclue changed the title Fix inconsistent switch case syntax[2.x] Improve PHP 8.5+ support by avoiding deprecated switch case syntaxAug 18, 2025
@WyriHaximusWyriHaximus merged commit cdcabd9 into reactphp:2.xAug 18, 2025
13 checks passed
@WyriHaximusWyriHaximus deleted the 2.x-fix-inconsistent-switch-case-syntax branch August 18, 2025 21:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@WyriHaximus@clue@kubawerlos@smecnarowski