laravel-microscope icon indicating copy to clipboard operation
laravel-microscope copied to clipboard

Web routes false positive

Open robov opened this issue 1 year ago • 4 comments

this generates a class not exists image image

When commenting out other code image results in no errors

robov avatar Jul 18 '22 14:07 robov

if you do not want to import the full namespace, you should not use the ::class syntax. It is not really a bug since the WebhookController::class does not exist and it has a namespace.

You better pass it as a string: 'WebhookController'

imanghafoori1 avatar Jul 24 '22 10:07 imanghafoori1

in this case the namespace is in the use statement : use App\Core\Billing\DebtCollection\Controllers\WebhookController; and this Name::class is the laravel perferred way over a stringy version of 'class'

So I do not completely understand what is wrong in my case

robov avatar Jul 27 '22 08:07 robov

could you please upload a summary of the route file? Since the screen shots do not include the use statements at the top.

imanghafoori1 avatar Jul 28 '22 12:07 imanghafoori1

sure image

image

robov avatar Jul 28 '22 13:07 robov

Not able to reproduce it.

imanghafoori1 avatar Jan 07 '23 00:01 imanghafoori1