Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inferring property types on templates #531

Open
cwhite92 opened this issue Sep 9, 2024 · 0 comments
Open

Add support for inferring property types on templates #531

cwhite92 opened this issue Sep 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cwhite92
Copy link

cwhite92 commented Sep 9, 2024

With the following style of return:

return ['id' => $plainPhpObject->id];

scramble is generating documentation that says id is a string:

image

despite id being type hinted to an integer:

image

from dumping out in one of my extensions, I can see the following comment on the property inference:

Cannot infer type of property [id] fetch on template type: not supported yet.

After asking in Discord, it was suggested I make a GitHub issue.

Cheers!

@romalytvynenko romalytvynenko added the enhancement New feature or request label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants