Skip to content

Commit 570a76c

Browse files
committed
Add missing upgrade path for Request::isMethodSafe() deprecation
1 parent 411afbe commit 570a76c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

UPGRADE-3.2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ HttpFoundation
9494
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
9595
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
9696

97+
* Checking only for cacheable HTTP methods with `Request::isMethodSafe()` is deprecated
98+
since version 3.2 and will throw an exception in 4.0. Disable checking only for
99+
cacheable methods by calling the method with `false` as first argument or use
100+
`Request::isMethodCacheable()` instead.
101+
97102
HttpKernel
98103
----------
99104

UPGRADE-4.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ HttpFoundation
151151
- `isInvalid`/`isSuccessful`/`isRedirection`/`isClientError`/`isServerError`
152152
- `isOk`/`isForbidden`/`isNotFound`/`isRedirect`/`isEmpty`
153153

154+
* The ability to check only for cacheable HTTP methods using `Request::isMethodSafe()` is
155+
not supported anymore, use `Request::isMethodCacheable()` instead.
156+
154157
HttpKernel
155158
----------
156159

0 commit comments

Comments
 (0)