phpDocumentor / fig-standards

Standards either proposed or approved by the Framework Interop Group

Home Page:http://www.php-fig.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are anonymous functions "Structural Elements"?

henrywright opened this issue · comments

Looking at the proposed PSR-5: PHPDoc, a function is referred to as a "Structural Element" and it's recommended that all "Structural Elements" are preceded with a DocBlock. However, there's no examples that cover anonymous functions. Are these considered "Structural Elements"? If so, how should we document these?

It was agreed in other issues here that they are not, however, there are still discussions regarding documentation of them. For instance phpDocumentor/phpDocumentor#1689 is related. Please have a look at the other closed issues here too.

Thanks for the link to the interesting discussion on this. I'll close this to keep the conversation central to that issue.