A
A
Alexander Shvedov2020-03-07 17:49:05
Laravel
Alexander Shvedov, 2020-03-07 17:49:05

Code analyzer in laravel how to register config?

I installed a code analyzer on the project and there are a lot of errors like
Method App\Http\Controllers\MainPage::index() should return Illuminate\Http\Response but returns Illuminate\View\View
almost every rest class.
Question advise the code analyzer or how to reconfigure this one so that it works fine with laravel 6 I
use https://github.com/nunomaduro/larastan now

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wells, 2020-03-07
@Alex_Wells

Do you have it above each controller method?
@return \Illuminate\Http\Response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question