Skip to content

Commit 70f673d

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: fix code style Remove full head content in HTML to text converter apply the sort callback on the whole search result
2 parents 112d8d2 + c0bf3e7 commit 70f673d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

JsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct($data = null, int $status = 200, array $headers = []
7272
*/
7373
public static function create($data = null, int $status = 200, array $headers = [])
7474
{
75-
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
75+
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, static::class);
7676

7777
return new static($data, $status, $headers);
7878
}

RedirectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(string $url, int $status = 302, array $headers = [])
5858
*/
5959
public static function create($url = '', int $status = 302, array $headers = [])
6060
{
61-
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
61+
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, static::class);
6262

6363
return new static($url, $status, $headers);
6464
}

Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function __construct(?string $content = '', int $status = 200, array $hea
234234
*/
235235
public static function create(?string $content = '', int $status = 200, array $headers = [])
236236
{
237-
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
237+
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, static::class);
238238

239239
return new static($content, $status, $headers);
240240
}

StreamedResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(callable $callback = null, int $status = 200, array
5252
*/
5353
public static function create($callback = null, int $status = 200, array $headers = [])
5454
{
55-
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, \get_called_class());
55+
trigger_deprecation('symfony/http-foundation', '5.1', 'The "%s()" method is deprecated, use "new %s()" instead.', __METHOD__, static::class);
5656

5757
return new static($callback, $status, $headers);
5858
}

0 commit comments

Comments
 (0)