JetBrains / phpstorm-attributes

PhpStorm specific attributes

Home Page:https://packagist.org/packages/jetbrains/phpstorm-attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I set the expected value from 0 to infinity?

doox911 opened this issue · comments

How can I use the #[ExpectedValues] attribute to indicate that a method or function argument can be 0 or more? And it can only be an integer.

I would like something like this:

#[ExpectedValues([0,1, ...])]
public function test(int $arg) {}

Hello, this feature request is out of scope of the #[ExpectedValues] design. The attribute goal is to enumerate finite number of expected values.