Replies: 8 comments
-
Hi @olvlvl, At current there is no way to mark a magic method as being deprecated; in the draft of PSR-5 (the new PHPDoc standard) there is a syntax to make that possible but that is not implemented in phpDocumentor yet. The new Syntax would be:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @mvriel. I'll wait for PhpStorm to update then. |
Beta Was this translation helpful? Give feedback.
-
I've run into same problem today. So I guess it is not fixed yet, so we should reopen the issue then @olvlvl ? |
Beta Was this translation helpful? Give feedback.
-
I completely forgot about this. I'm mostly writting Golang these days, no magic methods there :) |
Beta Was this translation helpful? Give feedback.
-
Ok I understand. Can you reopen the issue for us who miss that feature? Thanks. |
Beta Was this translation helpful? Give feedback.
-
@midlan Here you go. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I'm missing this as well. |
Beta Was this translation helpful? Give feedback.
-
Also magic properties of classes get deprecated sometimes. /**
* @property int $magicProperty A value of the magic property. @deprecated v1.5 Will be removed.
*/ |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
How does one mark a magic method as deprecated? There's no mention of this in the documentation. I tried different combination in PhpStorm but nothing works:
@deprecated @method int count()
@method @deprecated int count()
@method int count() @deprecated
That would be nice to implement because event magic methods get deprecated sometimes.
Beta Was this translation helpful? Give feedback.
All reactions