imanghafoori1 / laravel-microscope

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

php artisan check:psr4 #229

Closed HPWebdeveloper closed 2 years ago

HPWebdeveloper commented 2 years ago

I moved a model to a module. and then run psr4 Screen Shot 2022-07-17 at 10 30 51

This error seems strange to me! it talks about colors! Is it in Microscope or the code itself? php 7.4, Laravel 6

-- And it happens for the other classes as well. Unfortunately, I cannot use Microscope in this project and am doing manual everything :(

imanghafoori1 commented 2 years ago

Please mention the exact version of "laravel" and "php" you are using.

HPWebdeveloper commented 2 years ago

Thank you!

==========

Laravel Framework 6.20.44

==========

PHP 7.4.27 (cli) (built: Dec 16 2021 18:14:21) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies

imanghafoori1 commented 2 years ago

Please install the latest version and see what happens.

HPWebdeveloper commented 2 years ago

I installed the last version of Microscope. Nothing changed!

I just corrected the namespaces of the models manually but still there are many imports which are spread around the application. In the past, when I run psr4 in this step, it was finding them but now it cannot find them and says:

119 classes were checked under: module 1 module 2 ... module 10

All namespaces are correct! You rock (^_^)/

Still I am confused what was that error about color!

Thanks,

imanghafoori1 commented 2 years ago

please use composer show imanghafoori/laravel-microscope to see which version you have installed.