Repository navigation
Regenerate the turbo declarations of MutatingScope - #7184
Merged
Merged
Conversation
ce23f0d added the private MutatingScope::narrowsNativeTypeByHolders() and hasEqualNativeType() and ported them to turbo-ext/src/MutatingScope.cpp, but did not regenerate turbo-ext/src/generated/MutatingScope.h, so the method parity check of the Turbo Extension Version Check fails. Output of php turbo-ext/bin/generate-declarations.php. Amp-Thread-ID: https://ampcode.com/threads/T-01a1976c-1bde-72f8-b96c-072279109d59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ce23f0d ("Narrow native types by conditional expression holders") added the private
MutatingScope::narrowsNativeTypeByHolders()andhasEqualNativeType()and ported them toturbo-ext/src/MutatingScope.cpp, but it did not regenerateturbo-ext/src/generated/MutatingScope.h. Since then, Compile PHAR's Turbo Extension Version Check has failed at the method parity step (php turbo-ext/bin/side-by-side.php) on 2.3.x (ce23f0d90,f9e54c846):The failing check also skips the turbo jobs that depend on it, including Commit PHAR.
40620d1d5. Its Compile PHAR run passed in CI, andside-by-side.phppasses locally once23f0d90~1(51cdb8e97, whose own Compile PHAR run was cancelled by a later push).ce23f0d90.side-by-side.phpfails there locally with the message above.php turbo-ext/bin/generate-declarations.php. It adds the signatures of the two new private methods to the generated header; the rest of the diff is shifted string offsets. No C++ or PHP logic changes.#7183 contains the same regenerated signatures as part of a larger change; this PR fixes 2.3.x on its own.
Verification
php turbo-ext/bin/side-by-side.php: exit 0,MutatingScope: 143 methods paired.make build-turbo(strict,-Werror) succeeds.turbo-ext/tests/smoke.php:ALL OK.turbo-ext/tests/signature-parity.php:OK (18694 members compared).phpstan_turbo.soloaded: 24204 tests, OK (116 skipped).The shipped PHP code is unchanged, so the downgraded PHAR's PHP 7.4 compatibility is unaffected.