Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ccc77fc

Browse filesBrowse files
committed
Finish the work
1 parent 002ea53 commit ccc77fc
Copy full SHA for ccc77fc

File tree

5 files changed

+11
-11
lines changed
Filter options

5 files changed

+11
-11
lines changed

‎UPGRADE-6.1.md

Copy file name to clipboardExpand all lines: UPGRADE-6.1.md
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ FrameworkBundle
2727
To prevent services resetting after each message the "--no-reset" option in "messenger:consume" command can be set
2828
* Deprecate not setting the `http_method_override` config option. The default value will change to `false` in 7.0.
2929

30-
HttpFoundation
31-
--------------
32-
33-
* Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead`
34-
3530
HttpKernel
3631
----------
3732

‎UPGRADE-6.2.md

Copy file name to clipboardExpand all lines: UPGRADE-6.2.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ FrameworkBundle
99
`Symfony\Component\Serializer\Normalizer\NormalizerInterface` or implement `NormalizerAwareInterface` instead
1010
* Deprecate `AbstractController::renderForm()`, use `render()` instead
1111

12+
HttpFoundation
13+
--------------
14+
15+
* Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead
16+
1217
Mailer
1318
--------
1419

‎src/Symfony/Component/HttpFoundation/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHANGELOG
66

77
* Add stale while revalidate and stale if error cache header
88
* Allow dynamic session "ttl" when using a remote storage
9-
* Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead`
9+
* Deprecate `Request::getContentType()`, use `Request::getContentTypeFormat()` instead
1010

1111
6.0
1212
---

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,19 +1331,19 @@ public function setRequestFormat(?string $format)
13311331
}
13321332

13331333
/**
1334-
* Gets the format associated with the request.
1334+
* Gets the usual name of the format associated with the request's media type (provided in the Content-Type header).
13351335
*
1336-
* @deprecated since Symfony 6.1, use getContentTypeFormat instead
1336+
* @deprecated since Symfony 6.2, use getContentTypeFormat instead
13371337
*/
13381338
public function getContentType(): ?string
13391339
{
1340-
trigger_deprecation('symfony/http-foundation', '6.1', 'The method "%s" is deprecated, use "getContentTypeFormat" instead.', __METHOD__);
1340+
trigger_deprecation('symfony/http-foundation', '6.2', 'The method "%s" is deprecated, use "getContentTypeFormat" instead.', __METHOD__);
13411341

13421342
return $this->getContentTypeFormat();
13431343
}
13441344

13451345
/**
1346-
* Gets the usual name of the format associated with the request Content-Type mime type.
1346+
* Gets the usual name of the format associated with the request's media type (provided in the Content-Type header).
13471347
*
13481348
* @see Request::$formats
13491349
*/

‎src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/RequestTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testIsNoCache()
8686
*/
8787
public function testGetContentType()
8888
{
89-
$this->expectDeprecation('Since symfony/http-foundation 6.1: The method "Symfony\Component\HttpFoundation\Request::getContentType" is deprecated, use "getContentTypeFormat" instead.');
89+
$this->expectDeprecation('Since symfony/http-foundation 6.2: The method "Symfony\Component\HttpFoundation\Request::getContentType" is deprecated, use "getContentTypeFormat" instead.');
9090
$request = new Request();
9191

9292
$contentType = $request->getContentType();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.