Comments (3)
This is currently a limitation of nikic/PHP-Parser. You need to switch the order: https://phpstan.org/r/00a17781-6c7f-4229-b071-e36341fe3b6c
from phpstan.
Thank you so much for the quick answer, I did not think of that, it works perfectly now 👍
from phpstan.
I'm happy about that 😊
from phpstan.
Related Issues (20)
- Closure required to no return statement
- Possibly impure call to function array_map() in pure method - false positive
- array_filter(), array_map() and array_reduce() should be considered pure functions
- False positive `method.nonObject` if condition checked via temporary variable
- Add PHPStan version number to playground HOT 1
- Add a section about sponsoring this project to the phpstan.org main page HOT 2
- Variable $var might not be defined v2
- Array key of string[] property inside foreach suddenly changes type from int to int|string HOT 1
- Check array_fill_keys arguments
- Some parallel worker jobs have not finished HOT 3
- Get parent class of the node in a custom rule HOT 3
- Catch error in strtr HOT 1
- Error: smaller.invalid HOT 1
- Suggest unsetting a variable by reference after the loop
- False "Dead catch - Throwable is never thrown in the try block" on unitialized readonly propery HOT 2
- Call parameter for Autoconfigure attribute seems to get wrong signature detected HOT 3
- Show level next to error identifier HOT 1
- Add an error identifier to --error-format=raw
- Generics on primitives lost when inside generics
- concat of numeric constant string and int should lead to numeric-string
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 phpstan.