You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this same activeSniff & 'File has mixed ...', 1, 'Internal.LineEn...' backtrace on Laravel Framework 9.52.16
So outside of the special case Laravel Lumen.
Running it like ./vendor/bin/phpinsights analyse .\app\Http\Controllers\ still works. Probably given that line-endings are consistent in the Controllers directory.
Edit: Fixing all the line-ending using PhpStorm (or unix2dos/dos2unix I guess) made the error go away.
We have installed the package according to the steps but we are getting issues while running the command. please help me out on this one.
Thank you in advance
Error:-
The command "D:\laragon\bin\php\php-8.1.6-Win32-vs16-x64\php.exe "D:\laragon\www\blmp-api/vendor/bin/phpinsights" internal:processors thread-0-926867725bc85446ae5189b1f5b10feb" failed.
Exit Code: 255(Unknown error)
Working directory: D:\laragon\www\blmp-api
Output:
Fatal error: Uncaught Error: Typed property NunoMaduro\PhpInsights\Domain\File::$activeSniff must not be accessed before initialization in D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Doma
in\File.php:129
Stack trace:
#0 D:\laragon\www\blmp-api\vendor\squizlabs\php_codesniffer\src\Files\File.php(782): NunoMaduro\PhpInsights\Domain\File->addMessage(false, 'File has mixed ...', 1, 1, 'Internal.LineEn...', Array, 0, fa
lse)
#1 D:\laragon\www\blmp-api\vendor\squizlabs\php_codesniffer\src\Files\File.php(621): PHP_CodeSniffer\Files\File->addWarningOnLine('File has mixed ...', 1, 'Internal.LineEn...')
#2 D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Domain\File.php(41): PHP_CodeSniffer\Files\File->parse()
#3 D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Domain\File.php(74): NunoMaduro\PhpInsights\Domain\File->process()
#4 D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Domain\FileProcessors\SniffFileProcessor.php(65): NunoMaduro\PhpInsights\Domain\File->processWithTokenListenersAndFileInfo(Array, Object(Sym
fony\Component\Finder\SplFileInfo), false)
#5 D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Application\Console\Commands\InternalProcessorCommand.php(170): NunoMaduro\PhpInsights\Domain\FileProcessors\SniffFileProcessor->processFile
(Object(Symfony\Component\Finder\SplFileInfo))
#6 D:\laragon\www\blmp-api\vendor\nunomaduro\phpinsights\src\Application\Console\Commands\InternalProcessorCommand.php(86): NunoMaduro\PhpInsights\Application\Console\Commands\InternalProcessorCommand-
The text was updated successfully, but these errors were encountered: