Skip to content

Commit 9c1cc86

Browse files
committed
contrast the various styles of comment blocks
1 parent 87df140 commit 9c1cc86

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

proposed/phpdoc.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,19 @@ interpreted as described in [RFC 2119][RFC2119].
7676
Example:
7777

7878
```php
79+
/**
80+
* This is a counter.
81+
* @var int $int
82+
*/
83+
$int = 0;
84+
7985
/** @var int $int This is a counter. */
8086
$int = 0;
8187

82-
// there should be no docblock here
88+
/* comment block... this is not a docblock */
89+
$int++;
90+
91+
// single line comment... this is not a docblock
8392
$int++;
8493
```
8594

0 commit comments

Comments
 (0)