Comments (5)
What about just:
/** Description */
case Bar = 'bar';
from phpstan.
PhpStorm does not recognize that syntax as belonging to the case so it doesn't show that description when you invoke showing details for an enum case usage.
from phpstan.
You should open a bug with PhpStorm. @var
above an enum case makes zero sense. Sorry.
from phpstan.
Actually it does work without @var, PhpStorm seems to have cache issues sometimes. Sorry for the noise.
from phpstan.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from phpstan.
Related Issues (20)
- preg_match doesn't recognize that a group may be optional HOT 8
- Not null Array shape property compared to null should report an error
- Optional array shape property doesn't change to required after is_array HOT 5
- Bug on array HOT 1
- Bad handling of generics in traits HOT 1
- No error when passing incorrect array type property to pass-by-reference parameter
- Generic representing integer range reported as unresolvable type HOT 2
- Parameter #2 $callback of function uasort expects callable(Foo, Foo): int, 'strnatcasecmp' given. HOT 1
- Parameter #2 $callback of function uasort expects callable(Foo, Foo): int, Closure(string, string): int<-1, 1> given. HOT 2
- Using nullsafe operator on (empty) list HOT 5
- PHPStan 1.12.0 falsely assumes that regex capturing groups are always non-empty HOT 1
- @mixin check with $this return type does not respect the final type HOT 12
- PHPDoc Parsing Error with @ in Array Key Annotations HOT 1
- array_is_list result are wrong when playing with unset. HOT 3
- Support PHPUnit dataproviders to not yield "Method is unused" HOT 2
- Assigning `?int` as array key in foreach loop HOT 2
- Does not detect default property value not respecting type HOT 2
- Type of input parameter is not constrained after cast to string HOT 2
- phpstan --version reports as 1.12.x-dev@ for releases installed via composer HOT 2
- Internal error: Class App\Models\User was not found while trying to analyse it - discovering symbols is probably not configured properly. 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 phpstan.