Skip to content

Commit

Permalink
Update phpdoc-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 26, 2022
1 parent 14e62f6 commit 7525b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/writing-php-code/phpdoc-types.md
Expand Up @@ -328,10 +328,10 @@ All of these names are equivalent:

Marking a function or a method as `@return never` tells PHPStan the function always throws an exception, or contains a way to end the script execution, like `die()` or `exit()`. This is useful when [solving undefined variables](/writing-php-code/solving-undefined-variables).

Int masks
Integer masks
-------------------------

<div class="text-xs inline-block border border-green-600 text-green-600 bg-green-100 rounded px-1 mb-4">Available in PHPStan 1.6</div>
<div class="text-xs inline-block border border-green-600 text-green-600 bg-green-100 rounded px-1 mb-4">Available in PHPStan 1.6.0</div>

Some functions accept a bitmask composed by `|`-ing different integer values. `0` is always part of the possible values. Some examples:

Expand Down

0 comments on commit 7525b53

Please sign in to comment.