imanghafoori1 / laravel-microscope

Fearless refactoring, it does a lot of smart checks to find certain errors.
MIT License
1.48k stars 96 forks source link

Intersection types make check:imports fail #191

Closed melicerte closed 2 years ago

melicerte commented 2 years ago

Hi,

When I use intersection types, the php artisan check:imports command throws an error where it should not.

Example:

namespace App\Services;

use App\Contracts\ContractA;
use App\Contracts\ContractB;

class MyClass {
    public function myFunction(ContractA&ContractB $myContract): void
    {
        // function content
    }
}

throws

Class does not exist:                                               |
|  App\Services\&
imanghafoori1 commented 2 years ago

hummmm, it will be supported soon. Thanks for the report.

imanghafoori1 commented 2 years ago

This should be fixed by now. run: composer update imanghafoori/laravel-microscope -W

melicerte commented 2 years ago

Thanks @imanghafoori1 !