Skip to content

Commit eb92d7c

Browse files
bug symfony#25014 Move deprecation under use statements (greg0ire)
This PR was squashed before being merged into the 3.4 branch (closes symfony#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 e40905a + 0a5b016 commit eb92d7c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Bridge/Twig/Form/TwigRenderer.php

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

1212
namespace Symfony\Bridge\Twig\Form;
1313

14-
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Form\FormRenderer;
1715
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
1816
use Twig\Environment;
1917

18+
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
19+
2020
/**
2121
* @author Bernhard Schussek <[email protected]>
2222
*

src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php

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

1212
namespace Symfony\Bundle\SecurityBundle\Command;
1313

14-
@trigger_error(sprintf('Class "%s" is deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Bundle\AclBundle\Command\SetAclCommand instead.', SetAclCommand::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1715
use Symfony\Component\Console\Input\InputInterface;
1816
use Symfony\Component\Console\Output\ConsoleOutputInterface;
@@ -22,6 +20,8 @@
2220
use Doctrine\DBAL\Connection;
2321
use Doctrine\DBAL\Schema\SchemaException;
2422

23+
@trigger_error(sprintf('Class "%s" is deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Bundle\AclBundle\Command\InitAclCommand instead.', InitAclCommand::class), E_USER_DEPRECATED);
24+
2525
/**
2626
* Installs the tables required by the ACL system.
2727
*

src/Symfony/Component/Filesystem/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)