Skip to content

Commit

Permalink
rewording / restyling
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Mar 24, 2024
1 parent 54b2dbd commit 24862e2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions proposed/phpdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,9 @@ The following keywords are recognized by this PSR:

11. `null`: the element to which this type applies is a `NULL` value or, in technical terms, does not exist.

A big difference compared to `void` is that this type is used in any situation where the described element may at
Compared to `void`, this type is used in any situation where the described element may at
any given time contain an explicit `NULL` value.

**Example 1:**
```php
/**
* @return null
Expand All @@ -464,10 +463,6 @@ The following keywords are recognized by this PSR:
}
```

This type is commonly used in conjunction with another type to indicate that it is possible that nothing is
returned.

**Example 2:**
```php
/**
* @param bool $create_new When true returns a new stdClass.
Expand All @@ -486,7 +481,7 @@ The following keywords are recognized by this PSR:
12. `callable`: the element to which this type applies is a pointer to a function call. This may be any type of callable
as per the [definition of PHP][PHP_CALLABLE].

13. `false` or `true`: the element to which this type applies will have the value `TRUE` or `FALSE`. No other value will
13. `false` or `true`: the element to which this type applies will have the exact value `TRUE` or `FALSE`. No other value will
be returned from this element.

14. `self`: the element to which this type applies is of the same class in which the documented element is originally
Expand Down

0 comments on commit 24862e2

Please sign in to comment.