Skip to content

Commit f4b56b3

Browse files
committed
fixed some deprecation messages
1 parent 3a7579d commit f4b56b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/HttpFoundation/File/UploadedFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(string $path, string $originalName, string $mimeType
6161
$this->mimeType = $mimeType ?: 'application/octet-stream';
6262
$this->size = $size;
6363
if (null !== $size) {
64-
@trigger_error('Passing a size in the constructor is deprecated since 4.1 and will be removed in 5.0. Use getSize() instead.', E_USER_DEPRECATED);
64+
@trigger_error('Passing a size in the constructor is deprecated since Symfony 4.1 and will be removed in 5.0. Use getSize() instead.', E_USER_DEPRECATED);
6565
}
6666
$this->error = $error ?: UPLOAD_ERR_OK;
6767
$this->test = $test;
@@ -150,7 +150,7 @@ public function guessClientExtension()
150150
*/
151151
public function getClientSize()
152152
{
153-
@trigger_error(sprintf('"%s" is deprecated since 4.1 and will be removed in 5.0. Use getSize() instead.', __METHOD__), E_USER_DEPRECATED);
153+
@trigger_error(sprintf('"%s" is deprecated since Symfony 4.1 and will be removed in 5.0. Use getSize() instead.', __METHOD__), E_USER_DEPRECATED);
154154

155155
return $this->size;
156156
}

src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function testGetSize()
208208

209209
/**
210210
* @group legacy
211-
* @expectedDeprecation Passing a size in the constructor is deprecated since 4.1 and will be removed in 5.0. Use getSize() instead.
211+
* @expectedDeprecation Passing a size in the constructor is deprecated since Symfony 4.1 and will be removed in 5.0. Use getSize() instead.
212212
*/
213213
public function testConstructDeprecatedSize()
214214
{

0 commit comments

Comments
 (0)