Comments (5)
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.
Some additional details.
Using phpstorm with inspections enabled. After doing some code changes and going back to browser I get this error:
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.
Same here.
from phpdoc-parser.
I am testing right now with adding phpstan/phpdoc-parser
as direct dev requirement - seems promising for now.
from phpdoc-parser.
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)
- Undefined constant PHPStan\PhpDocParser\Ast\Type\GenericTypeNode::VARIANCE_INVARIANT HOT 2
- Union operator on a new line causes parsing error
- Multiline array shapes with 'comments'
- Shared shape definition for union of object and array
- Custom Phpstan rule tests broken after update to 1.20.0 HOT 16
- Printer must print float as float and never as int
- Custom Phpstan rule tests broken after update to 1.20.0 (still happens on 1.20.4) HOT 6
- Allowing whitespace between `array` and its "shape" HOT 3
- Call to a member function getNodeStartPointer() on null HOT 2
- Support for escaped quotes in Doctrine Annotation strings HOT 8
- InvalidTagValueNode when parsing Doctrine annotations HOT 4
- PHPStan report a Exception when upgrade to v1.10.34 HOT 5
- numeric postgres type resolves to mixed? HOT 2
- Comment not allowed in @phpstan-type
- Reading types from reflection, not from string HOT 3
- Return type in `@method` starting with `static` cannot be parsed HOT 6
- Documentation on retrieving the doc comment text HOT 4
- Add support for `@property $foo` syntax. HOT 6
- Newlines stops consuming tag descriptions HOT 3
- Rector error: Call to undefined method PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode::getParamImmediatelyInvokedCallableTagValues() HOT 2
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 phpdoc-parser.