plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: withMax not recognized with Helper Code

Open tebulrich opened this issue 5 months ago • 3 comments

Bug description

So i have for example a withMax that "generates" this field: logs_max_created_at. PhpStorm will say "Property accessed via magic method"'

User::withCount(['logs as total_calls'])
            ->withMax('logs', 'created_at');

Plugin version

12.21.0

Operating system

None

Steps to reproduce

No response

Relevant log output


tebulrich avatar Jul 31 '25 15:07 tebulrich

Thank you for taking the time to share your request! I've added it into internal feature tracker.

gorbunov avatar Aug 04 '25 11:08 gorbunov

Thanks a lot. While at it, withCount and other methods like this might have the same problem

tebulrich avatar Aug 04 '25 11:08 tebulrich

Unable to reproduce in current version, also there is no 12.21.0 plugin version. Maybe you are using other plugin?

gorbunov avatar Nov 10 '25 05:11 gorbunov