Skip to content

Commit d2edfab

Browse files
authored
Add note about \Throwable
1 parent f346aab commit d2edfab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ For being an early reviewer
7070
[1]: https://docs.google.com/spreadsheet/ccc?key=0Ak2JdGialLildEM2UjlOdnA4ekg3R1Bfeng5eGlZc1E#gid=0
7171

7272
## 8. Errata
73-
### 8.1 Type additions
73+
### 8.1 Throwable
74+
75+
The 2.0 release of the `psr/simple-cache` package updates `Psr\SimpleCache\CacheException` to extend `\Throwable`. This is considered a backwards compatible change for implementing libraries as of PHP 7.4.
76+
77+
### 8.2 Type additions
7478

7579
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.
7680

0 commit comments

Comments
 (0)