You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ApacheRequest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
namespaceSymfony\Component\HttpFoundation;
13
13
14
-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', ApacheRequest::class, Request::class), E_USER_DEPRECATED);
14
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', ApacheRequest::class, Request::class), \E_USER_DEPRECATED);
15
15
16
16
/**
17
17
* Request represents an HTTP request from an Apache server.
@trigger_error(sprintf('The default value of the "$secure" and "$samesite" arguments of "%s"\'s constructor will respectively change from "false" to "null" and from "null" to "lax" in Symfony 5.0, you should define their values explicitly or use "Cookie::create()" instead.', __METHOD__), E_USER_DEPRECATED);
97
+
@trigger_error(sprintf('The default value of the "$secure" and "$samesite" arguments of "%s"\'s constructor will respectively change from "false" to "null" and from "null" to "lax" in Symfony 5.0, you should define their values explicitly or use "Cookie::create()" instead.', __METHOD__), \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: File/MimeType/ExtensionGuesser.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
useSymfony\Component\Mime\MimeTypes;
15
15
16
-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', ExtensionGuesser::class, MimeTypes::class), E_USER_DEPRECATED);
16
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', ExtensionGuesser::class, MimeTypes::class), \E_USER_DEPRECATED);
17
17
18
18
/**
19
19
* A singleton mime type to file extension guesser.
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', FileBinaryMimeTypeGuesser::class, NewFileBinaryMimeTypeGuesser::class), E_USER_DEPRECATED);
18
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', FileBinaryMimeTypeGuesser::class, NewFileBinaryMimeTypeGuesser::class), \E_USER_DEPRECATED);
19
19
20
20
/**
21
21
* Guesses the mime type with the binary "file" (only available on *nix).
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', FileinfoMimeTypeGuesser::class, NewFileinfoMimeTypeGuesser::class), E_USER_DEPRECATED);
18
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', FileinfoMimeTypeGuesser::class, NewFileinfoMimeTypeGuesser::class), \E_USER_DEPRECATED);
19
19
20
20
/**
21
21
* Guesses the mime type using the PECL extension FileInfo.
@@ -65,7 +65,7 @@ public function guess($path)
65
65
returnnull;
66
66
}
67
67
68
-
if (!$finfo = new \finfo(FILEINFO_MIME_TYPE, $this->magicFile)) {
68
+
if (!$finfo = new \finfo(\FILEINFO_MIME_TYPE, $this->magicFile)) {
Copy file name to clipboardExpand all lines: File/MimeType/MimeTypeExtensionGuesser.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
14
14
useSymfony\Component\Mime\MimeTypes;
15
15
16
-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', MimeTypeExtensionGuesser::class, MimeTypes::class), E_USER_DEPRECATED);
16
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', MimeTypeExtensionGuesser::class, MimeTypes::class), \E_USER_DEPRECATED);
17
17
18
18
/**
19
19
* Provides a best-guess mapping of mime type to file extension.
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', MimeTypeGuesser::class, MimeTypes::class), E_USER_DEPRECATED);
18
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" instead.', MimeTypeGuesser::class, MimeTypes::class), \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: HeaderBag.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ public function get($key, $default = null)
112
112
{
113
113
$headers = $this->all((string) $key);
114
114
if (2 < \func_num_args()) {
115
-
@trigger_error(sprintf('Passing a third argument to "%s()" is deprecated since Symfony 4.4, use method "all()" instead', __METHOD__), E_USER_DEPRECATED);
115
+
@trigger_error(sprintf('Passing a third argument to "%s()" is deprecated since Symfony 4.4, use method "all()" instead', __METHOD__), \E_USER_DEPRECATED);
116
116
117
117
if (!func_get_arg(2)) {
118
118
return$headers;
@@ -218,7 +218,7 @@ public function getDate($key, \DateTime $default = null)
218
218
return$default;
219
219
}
220
220
221
-
if (false === $date = \DateTime::createFromFormat(DATE_RFC2822, $value)) {
221
+
if (false === $date = \DateTime::createFromFormat(\DATE_RFC2822, $value)) {
222
222
thrownew \RuntimeException(sprintf('The "%s" HTTP header is not parseable (%s).', $key, $value));
0 commit comments