Comments (7)
Quick solution: in config/insights.php
add \NunoMaduro\PhpInsights\Domain\Insights\SyntaxCheck::class
to remove
key
'remove' => [
...
\NunoMaduro\PhpInsights\Domain\Insights\SyntaxCheck::class,
],
But I think it's not perfect
from phpinsights.
having the same problem (well in line 57 now) on v2.10.0 the problem in my case is that
$process->getOutput()
results in an empty string, and there is no check for it... so JSON_THROW_ON_ERROR
fires...
on php >= 8.3.0 it could help to pass $process->getOutput() through json_validate
from phpinsights.
I have the same problem.
Library version | 2.8.0
Laravel version | 9.19.0
PHP version | 8.0.2
from phpinsights.
Getting this error as well @kleninmaxim suggestion works for now.
from phpinsights.
Didn't solve the issue for me.
Library version | 2.8.0
Laravel version | 9.52.15
PHP version | 8.1.23
from phpinsights.
Hello,
I had the exact same issue, I am using Latest Herd
and PHP 8.2.
Right after installing the package I ran artisan insight
I got this:
Then after applying the “workaround” above it got resolved (and beautiful):
Thanks.
from phpinsights.
i'm experiencing the same. It worked before, but not after moving from homestead to herd for windows (beta).
The above fix by adding the file to the remove config worked for me too.
from phpinsights.
Related Issues (20)
- Github actions skips config file HOT 1
- Configure insights (dokumentation)
- Configured excludes are ignored when specifying paths in the command
- Is there any sniff available for valid variable name when preset is Laravel
- DisallowedShortTernaryOperator suppress doesnt work
- How to add and config a PHP CS Fixer?
- Replace PHP cs fixer to Laravel pint? HOT 2
- Differences between switch and match sentences, impact on Cyclomatic Complexity HOT 5
- Provided files are ignored
- Support Symfony 7 HOT 4
- Add links to details or examples
- Ordered imports verification is incorrect
- Parameter type hint: Unparsable php code
- PHP CodeSniffer alternative HOT 2
- I am getting timeout error. Please guide me solution. HOT 2
- Laravel Lumen Error while running "php artisan insights" HOT 1
- Deprecated creation of dynamic property in SniffLoader
- Can not ignore SlevomatCodingStandard\Sniffs\Functions\FunctionLengthSniff
- Cannot install on laravel project based on php 8.3.4 | Your requirements could not be resolved to an installable set of packages. HOT 3
- Can't use with PHPUnit 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpinsights.