Giter VIP home page Giter VIP logo

Comments (5)

ondrejmirtes avatar ondrejmirtes commented on June 29, 2024

A few times a day, I am getting following exception in symfony project

Please tell us more. What are you running when you get this exception? Is phpstan/phpdoc-parser dependency of your own project?

from phpdoc-parser.

fliespl avatar fliespl commented on June 29, 2024

Some additional details.

Using phpstorm with inspections enabled. After doing some code changes and going back to browser I get this error:
homologacja sf5 wsl_

It will stay that way until I do cache clear in symfony.

Packages used:

       "phpstan/extension-installer": "^1.1",
        "phpstan/phpstan": "^1.7",
        "phpstan/phpstan-deprecation-rules": "^1.0",
        "phpstan/phpstan-doctrine": "^1.3",
        "phpstan/phpstan-phpunit": "^1.1",
        "phpstan/phpstan-strict-rules": "^1.2",
        "phpstan/phpstan-symfony": "^1.2",
        "phpstan/phpstan-webmozart-assert": "^1.2",

phpstan config:

includes:
    - tests/phpstan/custom-parameters.php

parameters:
    scanFiles:
      - src/Kernel.php
    level: max
    paths:
        - migrations
        - src
        - tests
    symfony:
        console_application_loader: tests/phpstan/console-application.php
    doctrine:
        objectManagerLoader: tests/phpstan/object-manager.php
    reportUnmatchedIgnoredErrors: false
    checkGenericClassInNonGenericObjectType: false
    typeAliases:
         SerializerSubscribedEvents: 'array<array{event: string, method: string, class?: class-string, priority?: int, format?: string}>'

from phpdoc-parser.

fabienlem avatar fabienlem commented on June 29, 2024

Same here.

from phpdoc-parser.

fliespl avatar fliespl commented on June 29, 2024

I am testing right now with adding phpstan/phpdoc-parser as direct dev requirement - seems promising for now.

from phpdoc-parser.

olijzenga avatar olijzenga commented on June 29, 2024

I am testing right now with adding phpstan/phpdoc-parser as direct dev requirement - seems promising for now.

Same issue here, this workaround also works for me.

from phpdoc-parser.

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.