Skip to content

Don't fully-qualify "object" as a return/param type - #78

Merged
janlam7 merged 1 commit into
hostnet:masterfrom
janlam7:fix/object-return-type-qualification
Sep 15, 2026
Merged

janlam7 merged 1 commit into
hostnet:masterfrom
janlam7:fix/object-return-type-qualification

Conversation

@janlam7

@janlam7 janlam7 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

"object" is a pseudo-type, not a class name, so emitting "\object" in generated interfaces is invalid PHP.

Same class of bug as the earlier "static" fix: "object" is a
pseudo-type, not a class name, so emitting "\object" in generated
interfaces is invalid PHP. Fixes generation for methods like
addMutation(object $x): void.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@janlam7 janlam7 self-assigned this Sep 15, 2026
@janlam7
janlam7 merged commit ec15d2c into hostnet:master Sep 15, 2026
2 checks passed
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.

2 participants