Skip to content

Commit 88f6907

Browse files
committed
Remove unneeded use statements
1 parent a93636e commit 88f6907

File tree

17 files changed

+2
-18
lines changed

17 files changed

+2
-18
lines changed

src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ private function createRegistry(?ObjectManager $manager = null): ManagerRegistry
422422
$registry->method('getManager')->willReturn($manager);
423423
}
424424

425-
426425
return $registry;
427426
}
428427
}

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Doctrine\Common\Collections\ArrayCollection;
1515
use Doctrine\DBAL\Types\Type;
1616
use Doctrine\ORM\EntityRepository;
17-
use Doctrine\ORM\Mapping\ClassMetadataInfo;
1817
use Doctrine\ORM\Tools\SchemaTool;
1918
use Doctrine\Persistence\ManagerRegistry;
2019
use Doctrine\Persistence\ObjectManager;
@@ -28,7 +27,6 @@
2827
use Symfony\Bridge\Doctrine\Tests\Fixtures\DoubleNullableNameEntity;
2928
use Symfony\Bridge\Doctrine\Tests\Fixtures\Employee;
3029
use Symfony\Bridge\Doctrine\Tests\Fixtures\Person;
31-
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntityRepository;
3230
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
3331
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdNoToStringEntity;
3432
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdStringWrapperNameEntity;

src/Symfony/Bridge/Twig/Tests/Extension/CodeExtensionTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public function testFormatArgsIntegration()
116116
$this->assertEquals($expected, $this->render($template, $data));
117117
}
118118

119-
120119
public function testFormatFileIntegration()
121120
{
122121
$template = <<<'TWIG'

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Symfony\Component\Console\Input\InputArgument;
2020
use Symfony\Component\Console\Input\InputInterface;
2121
use Symfony\Component\Console\Input\InputOption;
22-
use Symfony\Component\Console\Output\ConsoleOutputInterface;
2322
use Symfony\Component\Console\Output\OutputInterface;
2423
use Symfony\Component\Console\Style\SymfonyStyle;
2524
use Symfony\Component\HttpKernel\KernelInterface;

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Doctrine\DBAL\Connection;
1515
use PHPUnit\Framework\TestCase;
16-
use Seld\JsonLint\JsonParser;
1716
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration;
1817
use Symfony\Bundle\FullStack;
1918
use Symfony\Component\Cache\Adapter\DoctrineAdapter;

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

-1
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/Form/Extension/Core/Type/TimeType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\AbstractType;
15+
use Symfony\Component\Form\Event\PreSubmitEvent;
1516
use Symfony\Component\Form\Exception\InvalidConfigurationException;
1617
use Symfony\Component\Form\Exception\LogicException;
1718
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeImmutableToDateTimeTransformer;
1819
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToArrayTransformer;
1920
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer;
2021
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToTimestampTransformer;
21-
use Symfony\Component\Form\Event\PreSubmitEvent;
2222
use Symfony\Component\Form\FormBuilderInterface;
2323
use Symfony\Component\Form\FormEvent;
2424
use Symfony\Component\Form\FormEvents;

src/Symfony/Component/HttpFoundation/Tests/RateLimiter/AbstractRequestRateLimiterTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\RateLimiter\LimiterInterface;
17-
use Symfony\Component\RateLimiter\Policy\NoLimiter;
1817
use Symfony\Component\RateLimiter\RateLimit;
1918

2019
class AbstractRequestRateLimiterTest extends TestCase

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy;
1313

14-
use PHPUnit\Framework\MockObject\MockObject;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy;
1716
use Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy;

src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\AssertionFailedError;
1515
use PHPUnit\Framework\Constraint\Callback;
16-
use PHPUnit\Framework\MockObject\Stub\ReturnCallback;
1716
use PHPUnit\Framework\TestCase;
1817
use Symfony\Component\Messenger\Envelope;
1918
use Symfony\Component\Messenger\Exception\DelayedMessageHandlingException;

src/Symfony/Component/Mime/Part/Multipart/FormDataPart.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Mime\Exception\InvalidArgumentException;
1515
use Symfony\Component\Mime\Part\AbstractMultipartPart;
16-
use Symfony\Component\Mime\Part\DataPart;
1716
use Symfony\Component\Mime\Part\TextPart;
1817

1918
/**

src/Symfony/Component/Serializer/Tests/SerializerTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
use Symfony\Component\Serializer\Tests\Fixtures\DummyObjectWithEnumProperty;
6363
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithObjectOrNull;
6464
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithVariadicParameter;
65-
use Symfony\Component\Serializer\Tests\Fixtures\DummyWithVariadicProperty;
6665
use Symfony\Component\Serializer\Tests\Fixtures\FalseBuiltInDummy;
6766
use Symfony\Component\Serializer\Tests\Fixtures\FooImplementationDummy;
6867
use Symfony\Component\Serializer\Tests\Fixtures\FooInterfaceDummyDenormalizer;

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

-1
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/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Validator\Tests\Constraints;
1313

1414
use Symfony\Component\Validator\Constraint;
15-
use Symfony\Component\Validator\Constraints\AbstractComparison;
1615
use Symfony\Component\Validator\Constraints\NegativeOrZero;
1716
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1817

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

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Validator\Tests\Constraints;
1313

1414
use Symfony\Component\Validator\Constraint;
15-
use Symfony\Component\Validator\Constraints\AbstractComparison;
1615
use Symfony\Component\Validator\Constraints\Negative;
1716
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1817

src/Symfony/Component/VarExporter/Tests/LazyProxyTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
use Symfony\Component\VarExporter\ProxyHelper;
2121
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\AbstractHooked;
2222
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\AsymmetricVisibility;
23-
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\Hooked;
2423
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\FinalPublicClass;
24+
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\Hooked;
2525
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\ReadOnlyClass;
2626
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\StringMagicGetClass;
2727
use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\TestClass;

src/Symfony/Component/Workflow/Tests/Validator/WorkflowValidatorTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Workflow\Tests\Validator;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Workflow\Arc;
1615
use Symfony\Component\Workflow\Definition;
1716
use Symfony\Component\Workflow\Exception\InvalidDefinitionException;
1817
use Symfony\Component\Workflow\Tests\WorkflowBuilderTrait;

0 commit comments

Comments
 (0)