-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enumeration #50
Comments
Oh, yeah, that's actually a feature I was going to implement one day:
(will actually apply to any string value definition, not just to a key name) |
I'm bad with estimates, but I'll try to implement this by the monday. |
Thanks. |
Very basic support is now available in beta release: |
What is this |
An undefined variable =-D. A tricky way to tell plugin that |
Hi @klesun How can we autocomplete an option with the enums? For example:
Thanks for your help and for this great plugin! |
Not just when you pass this string directly to a function
Hi @berkayunal |
Hi @klesun, Rockin! Thanks for the update 👍 |
The array numeration for function params stopped working for me with one of the previous phpstorm updates |
It seems also this is supported for props class MyClass {
/**
* @var $tipoCheck = 'passivo' ?? 'attivo'
*/
private $tipoCheck = ''; |
I can't speak to @cmp-nct's claim that it stopped working, what I currently get works, but is also annoyingly including numbers (as many as there are array elements). class {
public static array $availableOutputSelectors = [
'ParentSKU', 'ID', 'Brand', 'Model', 'Virtual', 'Name', 'PrimarySupplier', 'Approved', 'IsActive',
// ...
];
/** @param array $outputSelectors = [static::$availableOutputSelectors[$any], static::$availableOutputSelectors[$any], ... x 100
public function withOutputSelectors(array $outputSelectors): static {
$this->outputSelectors = array_unique(array_merge($this->outputSelectors, $outputSelectors));
return $this;
} Slightly more complex example as I need to accept an infinite amount of parameters (or array elements) and I couldn't find a neater way. |
Hi there:
I want to know if it's possible to add a feature to simulate enumeration. I tried searching about it and I don't find it. However, I found your library that it's really cool but it's not about enumeration.
For example, something like that
The text was updated successfully, but these errors were encountered: