laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
166 stars 7 forks source link

[Bug]: Not recognize Queue facade :: assertPushed method #1018

Closed kamil-jakubowski closed 1 month ago

kamil-jakubowski commented 3 months ago

Bug description

image

Laravel 5.4

Plugin version

8.1.4.241

Operating system

MacOS

Steps to reproduce

No response

Relevant log output

No response

adelf commented 3 months ago

After calling Queue::fake() the Queue facade suddenly becomes the facade for the \Illuminate\Support\Testing\Fakes\QueueFake class. I can't complete these methods in all cases since they are available only after calling the fake() method.

You can use this correct way:

image
kamil-jakubowski commented 3 months ago

Ah, ok make sense, my bad, sorry it was late night and I haven't thought that assertion functions aren't in the main Queue facade 🤦

Unfortunately in lravel 5.4 Queue::fake() does not return anything, so I cannot use your proposal for autocompletion.

image

Thanks for the answer and for the plugin, it really helps working with legacy laravel app 👍 🙏