Hi Guys,
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() @deprecatedThat would be nice to implement because event magic methods get deprecated sometime.
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:
@method int count() {
@deprecated
}
Thanks for your answer @mvriel. I'll wait for PhpStorm to update then.
I've run into same problem today. So I guess it is not fixed yet, so we should reopen the issue then @olvlvl ?
I completely forgot about this. I'm mostly writting Golang these days, no magic methods there :)
Ok I understand. Can you reopen the issue for us who miss that feature? Thanks.
@midlan Here you go.
Most helpful comment
@midlan Here you go.