mjphaynes / php-resque

php-resque is a Redis-backed PHP library for creating background jobs, placing them on multiple queues, and processing them later.
MIT License
222 stars 50 forks source link

Unable to get code intellisense #112

Closed PAXANDDOS closed 1 year ago

PAXANDDOS commented 1 year ago

Magic functions like __call() and __callStatic() are used pretty often in the code, and because of them IDE cant get method names and their info.

Examples of such functions can be:

Resque::push() // push() is invoked via __callStatic(), function info is not loaded
Resque\Redis::instance()->* // none of the methods of Predis\Client is loaded, makes it very complicated

I'm not really sure of the way to fix this, I only can think of using DocBlocks on a class with respectful @method fields, but that just sounds bad 😖

xelan commented 1 year ago

Thanks to your contribution (additional PHP DocBlocks) this should now work if i see correctly?

PAXANDDOS commented 1 year ago

Yes, I believe so