Skip to content

Commit de56eee

Browse files
bug #25014 Move deprecation under use statements (greg0ire)
This PR was squashed before being merged into the 3.4 branch (closes #25014). Discussion ---------- Move deprecation under use statements | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | n/a Commits ------- 0a5b016 Move deprecation under use statements
2 parents 1d8193e + 9266a46 commit de56eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LockHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Filesystem;
1313

14-
@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);
15-
1614
use Symfony\Component\Filesystem\Exception\IOException;
1715
use Symfony\Component\Lock\Store\FlockStore;
1816
use Symfony\Component\Lock\Store\SemaphoreStore;
1917

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);
19+
2020
/**
2121
* LockHandler class provides a simple abstraction to lock anything by means of
2222
* a file lock.

0 commit comments

Comments
 (0)