Skip to content

fix: reserve KotlinX and PHP runtime names - #3514

Merged
schani merged 2 commits into
masterfrom
fix/kotlinx-serialization-runtime-names
Sep 7, 2026
Merged

fix: reserve KotlinX and PHP runtime names#3514
schani merged 2 commits into
masterfrom
fix/kotlinx-serialization-runtime-names

Conversation

@schani

@schani schani commented Sep 7, 2026

Copy link
Copy Markdown
Member

KotlinX Serialization imports annotations and helper types into generated files, and PHP reserves Serializable as a built-in interface. Models with those names therefore produced invalid Kotlin annotations and types or a PHP class redeclaration.

Reserve the affected runtime names and cover them in the shared keyword fixtures.

Tests:

  • npm run lint
  • PATH=/opt/homebrew/opt/kotlin/libexec/bin:$PATH CPUs=2 QUICKTEST=true FIXTURE=kotlinx,schema-kotlinx npm run test:fixtures (141 tests)
  • CPUs=2 QUICKTEST=true FIXTURE=php,schema-php npm run test:fixtures (141 tests)

Production diff: 7 added lines.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Generated-output differences

160 files differ — 106 modified, 54 new, 0 deleted
25604 changed lines — +19250 / −6354

Open the generated-output report →

@schani schani changed the title fix(kotlinx): reserve serialization runtime names fix: reserve KotlinX and PHP runtime names Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Generated-output differences

160 files differ — 106 modified, 54 new, 0 deleted
25604 changed lines — +19250 / −6354

Open the generated-output report →

@schani
schani merged commit 9839e30 into master Sep 7, 2026
35 checks passed
@schani
schani deleted the fix/kotlinx-serialization-runtime-names branch September 7, 2026 17:39
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