scramble icon indicating copy to clipboard operation
scramble copied to clipboard

[Bug]: In Resource (is_true => 1 > 2) is assumed to be string instead of bool

Open benascbr opened this issue 8 months ago • 4 comments

What happened?

'is_true' => 6 > 9 Is reported as string, I expect it to be reported as boolean

How to reproduce the bug

https://github.com/dedoc/demo-scramble/blob/main/app/Http/Resources/BookingResource.php#L25 Add line 'is_true' => 6 > 9

Package Version

dedoc/scramble 0.12.8

PHP Version

PHP 8.3.20 (cli) (built: Apr 10 2025 21:33:24) (NTS)

Laravel Version

Laravel Framework 11.42.1

Which operating systems does with happen with?

Linux

Notes

No response

benascbr avatar Apr 17 '25 07:04 benascbr

Image

benascbr avatar Apr 17 '25 07:04 benascbr

@benascbr PR is welcome 🤗

romalytvynenko avatar Apr 17 '25 08:04 romalytvynenko

Image 🦾

benascbr avatar Apr 22 '25 09:04 benascbr

TBH I find it very hard navigate code. Maybe codebase is too big for me to comprehend.

benascbr avatar Apr 22 '25 09:04 benascbr