Comments (4)
Hello! Can you please share a particular code example that doesn't work in the way you expect?
from phpstorm-attributes.
Surely.
I will be happy to attach the screenshot
In the simple example shown above, as you can see I have defined a custom Attribute called Custom
, then applying it to the method reported by the PHPStorm inspection, but the PHPStorm inspection keeps saying that I should add the Pure
attribute.
Thanks for your assistance and patience.
Adriano
from phpstorm-attributes.
Thank you. Unfortunately, for now, there is no way to make it work in the way you described rather than disabling inspection altogether or suppressing it in this doc comment. I've created an issue to discuss, please follow https://youtrack.jetbrains.com/issue/WI-63869.
from phpstorm-attributes.
Thanks for your assistance, I will definitely follow it.
from phpstorm-attributes.
Related Issues (20)
- How do I set the expected value from 0 to infinity? HOT 1
- [ArrayShape] Not working on properties HOT 4
- [ArrayShape] Document how to set the type to nullable or even join / intersection type HOT 2
- ArrayShape does not support `list()`. HOT 2
- Specify two ArrayShapes for a function. HOT 1
- [ArrayShape] doesn't work for structure inside the array HOT 2
- Using `ExpectedValues` attribute with a splat argument HOT 1
- [ArrayShape] Cannot prompt using constants HOT 2
- ExpectedValues do not support enum class
- Impossible to read properties from `#[ExpectedValues]`
- Is there any documentation on ArrayShape? HOT 1
- Psalm: TooManyArguments when passing a value for $mayDependOnGlobalScope to Pure attribute HOT 1
- Add ImPure annotation?
- [ArrayShape] for maps/associative arrays as dynamic array indexes
- Can we get a release? HOT 1
- PhpStorm complains about multiple definitions when installing this package HOT 2
- Using attributes with PHP < 8.0 HOT 3
- Please use semver HOT 3
- Parameter Attribute for expected class attributes
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 phpstorm-attributes.