Skip to content

fix: include mismatched PHP namespaces in package error - #853

Open
amarkdotdev wants to merge 1 commit into
googleapis:mainfrom
amarkdotdev:fix/668-namespace-mismatch-error
Open

fix: include mismatched PHP namespaces in package error#853
amarkdotdev wants to merge 1 commit into
googleapis:mainfrom
amarkdotdev:fix/668-namespace-mismatch-error

Conversation

@amarkdotdev

Copy link
Copy Markdown

Summary

  • Improve the package PHP namespace mismatch error to include the package name, distinct namespaces, and per-file namespace mapping.
  • Add a unit test covering the richer error details.

Fixes #668

Notes

  • Contributor will sign the Google CLA if required for this repository.

Test plan

  • Review updated exception text in CodeGenerator
  • Run tests/Unit/CodeGeneratorNamespaceTest.php (or full unit suite) in CI

Surface the package name, distinct namespaces, and per-file namespace
mapping so casing typos are easier to locate in large proto packages.

Signed-off-by: amarkdotdev <amarkdotdev@users.noreply.github.com>
@amarkdotdev
amarkdotdev requested a review from a team as a code owner August 9, 2026 19:50
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.

gapic: update namespce mismatch error to include mismatched namespaces

2 participants