Skip to content

Update DowngradeNullJson fixture to structural bitwise-or drop - #412

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-json-const-bitwise-fixture
Oct 19, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-json-const-bitwise-fixture

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The DowngradePhp73JsonConstRector drops a target JSON constant from a bitwise-or chain structurally (see #410 and the rule's own in_bitwise.php.inc unit fixture), so A | B | JSON_THROW_ON_ERROR becomes A | B rather than A | B | 0.

This Issues fixture still expected the old | 0 placeholder. Updated the expected output to match the structural drop, keeping it consistent with the rule's unit fixtures.

@TomasVotruba
TomasVotruba merged commit 77aa97c into main Oct 19, 2026
8 of 9 checks passed
@TomasVotruba
TomasVotruba deleted the tv-json-const-bitwise-fixture branch October 19, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant