Skip to content

Commit 6e3a01b

Browse files
navarrCrell
andauthored
Correct typographical/vocabulary usage errors
Co-authored-by: Larry Garfield <[email protected]>
1 parent 069fd7f commit 6e3a01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accepted/PSR-16-simple-cache-meta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ For being an early reviewer
7272
## 8. Errata
7373
### 8.1 Type additions
7474

75-
The 2.0 release of the `psr/simple-cache` package includs scalar parameter types and increases the minimum PHP version to 8.0 respectively. This is considered a backwards compatible change for implementing libraries as PHP 7.2 introduces covariance for parameters. Any implementation of 1.0 is compatible with 2.0. For calling libraries, however, this reduces the types that they may pass (as previously any parameter that could be cast to string could be accepted) and as such requires incrementing the major version.
75+
The 2.0 release of the `psr/simple-cache` package includes scalar parameter types and increases the minimum PHP version to 8.0. This is considered a backwards compatible change for implementing libraries as PHP 7.2 introduces covariance for parameters. Any implementation of 1.0 is compatible with 2.0. For calling libraries, however, this reduces the types that they may pass (as previously any parameter that could be cast to string could be accepted) and as such requires incrementing the major version.
7676

77-
The 3.0 release includes return types. Return types break backwards compatibility for implementing libraries as PHP does not support return type covariance.
77+
The 3.0 release includes return types. Return types break backwards compatibility for implementing libraries as PHP does not support return type widening.
7878

7979
Implementing libraries **MAY** add return types to their own packages at their discretion, provided that:
8080

0 commit comments

Comments
 (0)