Giter VIP home page Giter VIP logo

Comments (7)

kleninmaxim avatar kleninmaxim commented on June 15, 2024 1

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.

hexathos avatar hexathos commented on June 15, 2024 1

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.

pelmered avatar pelmered commented on June 15, 2024

I have the same problem.

Library version | 2.8.0
Laravel version | 9.19.0
PHP version | 8.0.2

from phpinsights.

andruu avatar andruu commented on June 15, 2024

Getting this error as well @kleninmaxim suggestion works for now.

from phpinsights.

EPuigdemont avatar EPuigdemont commented on June 15, 2024

Didn't solve the issue for me.

Library version | 2.8.0
Laravel version | 9.52.15
PHP version | 8.1.23

from phpinsights.

aldoyh avatar aldoyh commented on June 15, 2024

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:

Screenshot 2023-09-24 at 22 25 06

Then after applying the “workaround” above it got resolved (and beautiful):

Screenshot 2023-09-24 at 22 35 01

Thanks.

from phpinsights.

AndreasHerss avatar AndreasHerss commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.