Skip to content

Commit aa15ad0

Browse files
authored
Merge pull request #1319 from ashnazg/master
Trimming Verbiage for PSR Revival
2 parents 468721f + 8695620 commit aa15ad0

File tree

4 files changed

+108
-278
lines changed

4 files changed

+108
-278
lines changed

proposed/phpdoc-meta.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,22 @@
22

33
## 1. Summary
44

5-
The purpose of documentation using PHPDoc is to provide a comprehensive but flexible way to describe a software system
6-
at the smallest possible level of detail. This type of documentation aids contributors and consumers of your source
7-
code to, for example, understand what type of information needs to be passed to specific methods, or how to be able to
8-
consume a class of the project that a consumer want to use.
9-
10-
By documenting specific elements inside the source code, the documentation for that part of the source code will be less
11-
susceptible to becoming out of date.
12-
135
PHPDoc as a notation was first presented in 2000 by Ulf Wendel, is heavily inspired by JavaDoc,
146
and is currently in use by a significant percentage of public PHP projects in the field.
157

168
## 2. Why Bother?
179

18-
PHPDocumentor has spearheaded and facilitated the growth of the PHPDoc notation, but with the growing number of other
19-
tools that use the PHPDoc notation, it is becoming increasingly important to have an official and formal standard
20-
instead of the de-facto status that is currently provided.
10+
PHPDocumentor has facilitated the growth of the PHPDoc notation, but with the growing number of other
11+
tools that use the PHPDoc notation, it is becoming increasingly important to have a formal standard
12+
instead of its de-facto status.
2113

2214
Pros:
2315

2416
* Developers (consumers) have a common reference to refer to when confronted with PHPDoc.
2517
* Projects and their Developers (contributors) have an authoritative reference which they can consult.
2618
* IDE vendors can standardize the way they use PHPDoc to aid in concerns such as auto-completion and navigation.
27-
* Projects using the PHPDoc data to complement their functionality, such as Documentation generators or applications
28-
using annotations, will have a common language with their consumers.
29-
* Missing functionality can be described and implemented by aforementioned stakeholders.
19+
* Projects using the PHPDoc data to complement their functionality, such as Documentation generators or static
20+
analysis tools, will have a common language with their consumers.
3021

3122
Cons:
3223

@@ -77,14 +68,12 @@ Cons:
7768

7869
### 5.2 Sponsor
7970

80-
* Michael Cullum - [PHP-FIG](https://www.php-fig.org/)
71+
* Ken Guest - [PHP-FIG](https://www.php-fig.org/)
8172

82-
### 5.3 Working group members
73+
### 5.3 Working Group members
8374

84-
* Alexey Gopachenko - [PhpStorm](https://www.jetbrains.com/phpstorm)
85-
* Matthew Brown - [Psalm](https://github.com/vimeo/psalm)
86-
* Jan Tvrdík - [PHPStan](https://github.com/phpstan/phpstan)
8775
* Jaap van Otterdijk - [phpDocumentor](https://github.com/phpDocumentor/phpDocumentor2)
76+
* Alexander Makarov - [Yii](https://github.com/yiisoft/yii2)
8877

8978
## 6. Votes
9079

proposed/phpdoc-tags-meta.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,12 @@ Cons:
5151

5252
### 5.2 Sponsor
5353

54-
* Michael Cullum
54+
* Ken Guest
5555

5656
### 5.3 Working group members
5757

58-
* Alexey Gopachenko - [PhpStorm](https://www.jetbrains.com/phpstorm)
59-
* Matthew Brown - [Psalm](https://github.com/vimeo/psalm)
60-
* Jan Tvrdík - [PHPStan](https://github.com/phpstan/phpstan)
6158
* Jaap van Otterdijk - [phpDocumentor](https://github.com/phpDocumentor/phpDocumentor2)
59+
* Alexander Makarov - [Yii](https://github.com/yiisoft/yii2)
6260

6361
## 6. Votes
6462

proposed/phpdoc-tags.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ function or method. When provided, it MUST contain a "Type"
690690
to indicate what is returned; the description on the other hand is OPTIONAL yet
691691
RECOMMENDED in case of complicated return structures, such as associative arrays.
692692

693-
It is RECOMMENDED to use this tag with every function and method.
694-
If no `@return` type is given, and no return type declaration is provided in
695-
the code signature, an interpreter MUST interpret this as if `@return mixed`
696-
is provided.
693+
It is RECOMMENDED to use this tag with every function or method where PHP native
694+
types are insufficient. If no `@return` type is given, and no return type
695+
declaration is provided in the code signature, an interpreter MUST interpret
696+
this as if `@return mixed` is provided.
697697

698698
This tag MUST NOT occur more than once in a "DocBlock" and is limited to the
699699
"DocBlock" of a "Structural Element" of a method or function.

0 commit comments

Comments
 (0)