I would not use PHPDoc for this method here. when you declared the $arg type and return type, it's self-explanatory and any modern IDE can catch that, PHPDoc here just makes unnecessarily noisy.
If you add a return type to create method via either PHPDoc or method itself, $type = type::create($arg); prop comments is unnecessary.
I would not use PHPDoc for this method here. when you declared the $arg type and return type, it's self-explanatory and any modern IDE can catch that, PHPDoc here just makes unnecessarily noisy.
If you add a return type to
create
method via either PHPDoc or method itself,$type = type::create($arg);
prop comments is unnecessary.Exactly my point.
And mixing use cases when and when not to include phpdoc syntax is even worse: It removes the whole concept of code style when it's not even followed.