scramble icon indicating copy to clipboard operation
scramble copied to clipboard

Add support for inferring property types on templates

Open cwhite92 opened this issue 5 months ago • 0 comments

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!

cwhite92 avatar Sep 09 '24 14:09 cwhite92