Skip to content

Commit

Permalink
bug #25014 Move deprecation under use statements (greg0ire)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-grekas committed Nov 19, 2017
2 parents 1d8193e + 9266a46 commit de56eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LockHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

namespace Symfony\Component\Filesystem;

@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);

use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Lock\Store\FlockStore;
use Symfony\Component\Lock\Store\SemaphoreStore;

@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);

/**
* LockHandler class provides a simple abstraction to lock anything by means of
* a file lock.
Expand Down

0 comments on commit de56eee

Please sign in to comment.