8000 minor #58394 Remove unused imports (alexandre-daubois) · symfony/symfony@a6149f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6149f9

Browse files
minor #58394 Remove unused imports (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- Remove unused imports | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 6c6a162 Remove unused imports
2 parents e7589c1 + 6c6a162 commit a6149f9

File tree

29 files changed

+2
-43
lines changed

29 files changed

+2
-43
lines changed

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Embeddable/Identifier.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Fixtures\Embeddable;
1313

14-
use Doctrine\DBAL\Types\Types;
1514
use Doctrine\ORM\Mapping as ORM;
1615

1716
#[ORM\Embeddable]

src/Symfony/Bridge/PsrHttpMessage/Tests/Fixtures/ServerRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bridge\PsrHttpMessage\Tests\Fixtures;
1313

14-
use Psr\Http\Message\RequestInterface;
1514
use Psr\Http\Message\ServerRequestInterface;
1615
use Psr\Http\Message\StreamInterface;
1716
use Psr\Http\Message\UriInterface;

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\BarMessage;
4-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\FooMessage;
5-
63
$container->loadFromExtension('framework', [
74
'annotations' => false,
85
'http_method_override' => false,

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_without_mailer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\BarMessage;
4-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\FooMessage;
5-
63
$container->loadFromExtension('framework', [
74
'annotations' => false,
85
'http_method_override' => false,

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_without_messenger.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\BarMessage;
4-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\FooMessage;
5-
63
$container->loadFromExtension('framework', [
74
'annotations' => false,
85
'http_method_override' => false,

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/notifier_without_transports.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\BarMessage;
4-
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\FooMessage;
5-
63
$container->loadFromExtension('framework', [
74
'annotations' => false,
85
'http_method_override' => false,

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/XmlCustomAuthenticatorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension;
1616
use Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Fixtures\Authenticator\CustomAuthenticator;
17-
use Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Fixtures\UserProvider\CustomProvider;
1817
use Symfony\Component\Config\FileLocator;
1918
use Symfony\Component\DependencyInjection\ContainerBuilder;
2019
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/command_19.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Symfony\Component\Console\Helper\TableCell;
43
use Symfony\Component\Console\Input\InputInterface;
54
use Symfony\Component\Console\Output\OutputInterface;
65
use Symfony\Component\Console\Style\SymfonyStyle;

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedLocatorConsumerWithDefaultIndexMethod.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Psr\Container\ContainerInterface;
66
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
7-
use Symfony\Component\DependencyInjection\Attribute\TaggedLocator;
87

98
final class TaggedLocatorConsumerWithDefaultIndexMethod
109
{

src/Symfony/Component/DependencyInjection/Tests/Fixtures/TaggedLocatorConsumerWithDefaultPriorityMethod.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Psr\Container\ContainerInterface;
66
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
7-
use Symfony\Component\DependencyInjection\Attribute\TaggedLocator;
87

98
final class TaggedLocatorConsumerWithDefaultPriorityMethod
109
{

src/Symfony/Component/DependencyInjection/Tests/Fixtures/config/stack.php

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

33
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
44

5-
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo;
6-
75
return function (ContainerConfigurator $c) {
86
$services = $c->services();
97

src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/CustomContainer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\containers;
44

55
use Symfony\Component\DependencyInjection\Container;
6-
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
76

87
class CustomContainer extends Container
98
{

src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_env_in_id.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

33
use Symfony\Component\DependencyInjection\ContainerBuilder;
4-
use Symfony\Component\DependencyInjection\Definition;
5-
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
64
use Symfony\Component\DependencyInjection\Reference;
75

86
$container = new ContainerBuilder();

src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container_inline_requires.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Symfony\Tests\InlineRequires;
44

55
use Symfony\Component\DependencyInjection\ContainerBuilder;
6-
use Symfony\Component\DependencyInjection\Definition;
7-
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
86
use Symfony\Component\DependencyInjection\Reference;
97
use Symfony\Component\DependencyInjection\Tests\Fixtures\includes\HotPath;
108
use Symfony\Component\DependencyInjection\Tests\Fixtures\ParentNotExists;

src/Symfony/Component/Form/Extension/Core/Type/TimeType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\AbstractType;
15-
use Symfony\Component\Form\Event\PreSubmitEvent;
1615
use Symfony\Component\Form\Exception\InvalidConfigurationException;
1716
use Symfony\Component\Form\Exception\LogicException;
1817
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeImmutableToDateTimeTransformer;

src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\Form\Extension\Core\Type\TextType;
1919
use Symfony\Component\Form\Extension\DataCollector\FormDataCollector;
2020
use Symfony\Component\Form\Extension\DataCollector\FormDataExtractor;
21-
use Symfony\Component\Form\Form;
2221
use Symfony\Component\Form\FormError;
2322
use Symfony\Component\Form\FormFactory;
2423
use Symfony\Component\Form\FormInterface;

src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\HttpFoundation\RequestStack;
2121
use Symfony\Component\HttpFoundation\Response;
2222
use Symfony\Component\HttpFoundation\Session\Session;
23-
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
2423
use Symfony\Component\HttpFoundation\Session\SessionInterface;
2524
use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
2625
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;

src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\HttpFoundation\Cookie;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
18-
use Symfony\Component\HttpKernel\HttpCache\HttpCache;
1918
use Symfony\Component\HttpKernel\HttpCache\Store;
2019

2120
class StoreTest extends TestCase

src/Symfony/Component/Intl/Data/Generator/TimezoneDataGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Intl\Data\Util\ArrayAccessibleResourceBundle;
1818
use Symfony\Component\Intl\Data\Util\LocaleScanner;
1919
use Symfony\Component\Intl\Exception\MissingResourceException;
20-
use Symfony\Component\Intl\Locale;
2120

2221
/**
2322
* The rule for compiling the zone bundle.

src/Symfony/Component/Ldap/Adapter/ConnectionInterface.php

Lines changed: 2 additions & 3 deletions
O 10000 riginal file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Ldap\Exception\AlreadyExistsException;
1515
use Symfony\Component\Ldap\Exception\ConnectionTimeoutException;
1616
use Symfony\Component\Ldap\Exception\InvalidCredentialsException;
17-
use Symfony\Component\Ldap\Exception\LdapException;
1817

1918
/**
2019
* @author Charles Sarrazin <charles@sarraz.in>
@@ -46,10 +45,10 @@ public function bind(?string $dn = null, #[\SensitiveParameter] ?string $passwor
4645
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
4746
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
4847
*/
49-
// public function saslBind(?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authcId = null, ?string $authzId = null, ?string $props = null): void;
48+
// public function saslBind(?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authcId = null, ?string $authzId = null, ?string $props = null): void;
5049

5150
/*
5251
* Return authenticated and authorized (for SASL) DN.
5352
*/
54-
// public function whoami(): string;
53+
// public function whoami(): string;
5554
}

src/Symfony/Component/Lock/Store/RedisStore.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Lock\Exception\LockConflictedException;
1818
use Symfony\Component\Lock\Exception\LockStorageException;
1919
use Symfony\Component\Lock\Key;
20-
use Symfony\Component\Lock\PersistingStoreInterface;
2120
use Symfony\Component\Lock\SharedLockStoreInterface;
2221

2322
/**

src/Symfony/Component/Notifier/Tests/Event/FailedMessageEventTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\Notifier\Message\SmsMessage;
2121
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2222
use Symfony\Component\Notifier\Transport\AbstractTransport;
23-
use Symfony\Component\Notifier\Transport\NullTransport;
2423
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2524
use Symfony\Contracts\HttpClient\HttpClientInterface;
2625

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\Process\Exception\LogicException;
1717
use Symfony\Component\Process\Exception\ProcessFailedException;
1818
use Symfony\Component\Process\Exception\ProcessSignaledException;
19-
use Symfony\Component\Process\Exception\ProcessStartFailedException;
2019
use Symfony\Component\Process\Exception\ProcessTimedOutException;
2120
use Symfony\Component\Process\Exception\RuntimeException;
2221
use Symfony\Component\Process\InputStream;

src/Symfony/Component/Security/Http/Firewall/LogoutListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Firewall;
1313

1414
use Symfony\Component\HttpFoundation\Request;
15-
use Symfony\Component\HttpFoundation\Response;
1615
use Symfony\Component\HttpKernel\Event\RequestEvent;
1716
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1817
use Symfony\Component\Security\Core\Exception\LogoutException;

src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait;
16-
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
1716
use Symfony\Component\Security\Core\Exception\UserNotFoundException;
1817
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
1918

src/Symfony/Component/Serializer/Tests/Fixtures/DummyObjectWithEnumProperty.php

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

33
namespace Symfony\Component\Serializer\Tests\Fixtures;
44

5-
use Symfony\Component\Serializer\Tests\Fixtures\StringBackedEnumDummy;
6-
75
class DummyObjectWithEnumProperty
86
{
97
public StringBackedEnumDummy $get;

src/Symfony/Component/Validator/Tests/Constraints/AtLeastOneOfValidatorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use Symfony\Component\Validator\Constraints\Length;
2929
use Symfony\Component\Validator\Constraints\LessThan;
3030
use Symfony\Component\Validator\Constraints\Negative;
31-
use Symfony\Component\Validator\Constraints\NotBlank;
3231
use Symfony\Component\Validator\Constraints\NotNull;
3332
use Symfony\Component\Validator\Constraints\Range;
3433
use Symfony\Component\Validator\Constraints\Regex;

src/Symfony/Component/Validator/Tests/Fixtures/DummyCompoundConstraintWithGroups.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\Validator\Constraints\Compound;
1515
use Symfony\Component\Validator\Constraints\Length;
1616
use Symfony\Component\Validator\Constraints\NotBlank;
17-
use Symfony\Component\Validator\Constraints\Regex;
1817

1918
class DummyCompoundConstraintWithGroups extends Compound
2019
{

src/Symfony/Contracts/HttpClient/ResponseInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
1515
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
16-
use Symfony\Contracts\HttpClient\Exception\ExceptionInterface;
1716
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
1817
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
1918
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;

0 commit comments

Comments
 (0)
0