Skip to content

Commit d3421fa

Browse files
committed
fixed some deprecation messages
1 parent 12241d3 commit d3421fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public function readlink($path, $canonicalize = false)
451451
public function makePathRelative($endPath, $startPath)
452452
{
453453
if (!$this->isAbsolutePath($endPath) || !$this->isAbsolutePath($startPath)) {
454-
@trigger_error(sprintf('Support for passing relative paths to %s() is deprecated since version 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
454+
@trigger_error(sprintf('Support for passing relative paths to %s() is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
455455
}
456456

457457
// Normalize separators on Windows

LockHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Lock\Store\FlockStore;
1616
use Symfony\Component\Lock\Store\SemaphoreStore;
1717

18-
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
18+
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
1919

2020
/**
2121
* LockHandler class provides a simple abstraction to lock anything by means of

Tests/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ public function providePathsForMakePathRelative()
11441144
/**
11451145
* @group legacy
11461146
* @dataProvider provideLegacyPathsForMakePathRelativeWithRelativePaths
1147-
* @expectedDeprecation Support for passing relative paths to Symfony\Component\Filesystem\Filesystem::makePathRelative() is deprecated since version 3.4 and will be removed in 4.0.
1147+
* @expectedDeprecation Support for passing relative paths to Symfony\Component\Filesystem\Filesystem::makePathRelative() is deprecated since Symfony 3.4 and will be removed in 4.0.
11481148
*/
11491149
public function testMakePathRelativeWithRelativePaths($endPath, $startPath, $expectedPath)
11501150
{

0 commit comments

Comments
 (0)