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

@clue clue 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.

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

Successfully merging this pull request may close these issues.

3 participants