phpstorm-attributes icon indicating copy to clipboard operation
phpstorm-attributes copied to clipboard

PhpStorm specific attributes

Results 10 phpstorm-attributes issues
Sort by recently updated
recently updated
newest added

this is normal ![image](https://user-images.githubusercontent.com/29603067/181677680-ec248292-7795-4aa1-8261-aebea9f7ea11.png) But I define it as a constant, he can't code hint ![image](https://user-images.githubusercontent.com/29603067/181677864-66616f89-4a9d-4dc4-8795-0a8669d6e8a8.png) My phpstorm is installed on windows11, the version is PhpStorm 2022.1.4

There is nothing in the README that states how to set the type nullable or use a join / intersection type. I assume it is the same as for phpdoc...

Suggestion to add an attribute to ensure an instance has a class attribute. ```php class ExpectsAttribute { public function __construct( #[ExpectedAttribute(CustomAttribute::class)] object $instance, ) { $this->instance = $instance; } }...

PHPStan is flagging items like this because the only tag in this project does not include all of the changes. ![image](https://github.com/JetBrains/phpstorm-attributes/assets/75857/b3120930-6bd1-40d0-aef2-59ca29d2e6dd)

Right now if I have following attribute ``` class Shema { #[ArrayShape(['string' => Property::class])] public array $properties; } $schema->properties['prop1'] = new Property(); $shcema->properties['prop2'] = new Property(); ``` PHPStorm (PhpStorm 2023.3.4)...

Hey! Since there is a Pure annotation, shouldn't there be an ImPure annotation, or at least a way to set the opposite pure state? This is supported by PHPStan: >...

I can't seem to find any. The example provided in this repos readme is way too shallow to be useful in the vast majority of real-world usecases. How do I...

Message: `ERROR: TooManyArguments - foo.php:3:2 - Class JetBrains\PhpStorm\Pure has no __construct, but arguments were passed (see https://psalm.dev/026)` ```foo.php

Our codebase is annotated with `#[ExpectedValues]` and for a custom analyzer I want to read some of these but that's not possible. https://github.com/JetBrains/phpstorm-attributes/blob/411f40e9d39088e16a0475d00cc91931315120fa/src/ExpectedValues.php#L40 Please change the attributes so that the...

ExpectedValues do not support enum class, sample code below ```php use JetBrains\PhpStorm\ExpectedValues; enum Color:string { case RED='red'; case BLUE='blue'; } function test(#[ExpectedValues(valuesFromClass: Color::class)] string $color):string { return $color; } test();//autocomplete...