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

check:compact incorrectly reporting errors #289

Open PatrickSJ opened 5 months ago

PatrickSJ commented 5 months ago

This is happening with every compact() call.

compact() function call has problems man!
    does not exist
at app/Http/Controllers/VendorController.php:28
    public function edit(Vendor $vendor)
    {
        return view('vendors.edit', compact('vendor'));
    }

PHP 8.1

imanghafoori1 commented 5 months ago

Thanks for the report.