Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable UnusedUse sniff again #9267

Merged
merged 1 commit into from
Dec 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Doctrine\ORM\Query;
use Doctrine\ORM\UnitOfWork;

use function array_walk;
use function assert;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Cache/DefaultQueryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Doctrine\ORM\Query\ResultSetMapping;
use Doctrine\ORM\UnitOfWork;

use function array_key_exists;
use function array_map;
use function array_shift;
use function array_unshift;
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Cache/Exception/CacheException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

use Doctrine\ORM\Cache\CacheException as BaseCacheException;

use function sprintf;

/**
* Exception for cache.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

use function sprintf;

class CannotUpdateReadOnlyCollection extends CacheException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

use function sprintf;

class CannotUpdateReadOnlyEntity extends CacheException
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Cache/Exception/FeatureNotImplemented.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

class FeatureNotImplemented extends CacheException
{
public static function scalarResults(): self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

final class MetadataCacheNotConfigured extends CacheException
{
public static function create(): self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Cache\Exception;

use Doctrine\Common\Cache\Cache;
use LogicException;

use function get_class;

Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Cache/Exception/NonCacheableEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

use function sprintf;

class NonCacheableEntity extends CacheException
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Cache/Exception/QueryCacheNotConfigured.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Cache\Exception;

use LogicException;

final class QueryCacheNotConfigured extends CacheException
{
public static function create(): self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Cache\Exception;

use Doctrine\Common\Cache\Cache;
use LogicException;

use function get_class;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Cache\Persister\Collection;

use Doctrine\Common\Util\ClassUtils;
use Doctrine\ORM\Cache\CacheException;
use Doctrine\ORM\Cache\Exception\CannotUpdateReadOnlyCollection;
use Doctrine\ORM\PersistentCollection;

Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/EntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
use Doctrine\ORM\Repository\Exception\InvalidMagicMethodCall;
use Doctrine\ORM\Repository\InvalidFindByCall;
use Doctrine\Persistence\ObjectRepository;

use function array_slice;
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/EntityManagerClosed.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use RuntimeException;

final class EntityManagerClosed extends ORMException implements ManagerException
{
public static function create(): self
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Exception/InvalidEntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Exception;

use Doctrine\Persistence\ObjectRepository;
use LogicException;

final class InvalidEntityRepository extends ORMException implements ConfigurationException
{
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/MissingIdentifierField.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

use function sprintf;

final class MissingIdentifierField extends ORMException implements ManagerException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

final class MissingMappingDriverImplementation extends ORMException implements ManagerException
{
public static function create(): self
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/NamedQueryNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

use function sprintf;

final class NamedQueryNotFound extends ORMException implements ConfigurationException
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/ProxyClassesAlwaysRegenerating.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

final class ProxyClassesAlwaysRegenerating extends ORMException implements ConfigurationException
{
public static function create(): self
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/UnknownEntityNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

use function sprintf;

final class UnknownEntityNamespace extends ORMException implements ConfigurationException
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Exception/UnrecognizedIdentifierFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Exception;

use LogicException;

use function implode;
use function sprintf;

Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Mapping/AttributeOverride.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Mapping;

use Attribute;

/**
* This annotation is used to override the mapping of a entity property.
*
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Doctrine\ORM\Id\UuidGenerator;
use Doctrine\ORM\Mapping\Exception\CannotGenerateIds;
use Doctrine\ORM\Mapping\Exception\InvalidCustomGenerator;
use Doctrine\ORM\Mapping\Exception\TableGeneratorNotImplementedYet;
use Doctrine\ORM\Mapping\Exception\UnknownGeneratorType;
use Doctrine\Persistence\Mapping\AbstractClassMetadataFactory;
use Doctrine\Persistence\Mapping\ClassMetadata as ClassMetadataInterface;
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Doctrine\Deprecations\Deprecation;
use Doctrine\Instantiator\Instantiator;
use Doctrine\Instantiator\InstantiatorInterface;
use Doctrine\ORM\Cache\Exception\CacheException;
use Doctrine\ORM\Cache\Exception\NonCacheableEntityAssociation;
use Doctrine\ORM\Id\AbstractIdGenerator;
use Doctrine\Persistence\Mapping\ClassMetadata;
Expand Down
5 changes: 0 additions & 5 deletions lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
namespace Doctrine\ORM\Mapping\Driver;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\Reader;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\Annotation;
use Doctrine\ORM\Cache\Exception\CacheException;
use Doctrine\ORM\Events;
use Doctrine\ORM\Id\TableGenerator;
use Doctrine\ORM\Mapping;
use Doctrine\ORM\Mapping\Builder\EntityListenerBuilder;
use Doctrine\ORM\Mapping\MappingException;
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Mapping/Exception/CannotGenerateIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\ORM\Exception\ORMException;
use LogicException;

use function get_class;
use function sprintf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Mapping\Exception;

use Doctrine\ORM\Exception\ORMException;
use LogicException;

use function sprintf;
use function var_export;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Mapping\Exception;

use Doctrine\ORM\Exception\ORMException;
use LogicException;

final class UnknownGeneratorType extends ORMException
{
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Mapping/MappingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Mapping;

use Doctrine\ORM\Exception\ORMException;
use LogicException;
use ReflectionException;

use function array_keys;
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/OptimisticLockException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use DateTimeInterface;
use Doctrine\ORM\Exception\ORMException;
use RuntimeException;

/**
* An OptimisticLockException is thrown when a version check on an object
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use function array_combine;
use function array_diff_key;
use function array_map;
use function array_udiff_assoc;
use function array_values;
use function array_walk;
use function get_class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Exception\ORMException;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Mapping\MappingException;
use Doctrine\ORM\Mapping\QuoteStrategy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Persisters\Exception;

use Doctrine\ORM\Exception\PersisterException;
use LogicException;

class CantUseInOperatorOnCompositeKeys extends PersisterException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Persisters\Exception;

use Doctrine\ORM\Exception\PersisterException;
use LogicException;

class InvalidOrientation extends PersisterException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Persisters\Exception;

use Doctrine\ORM\Exception\PersisterException;
use LogicException;

use function sprintf;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
namespace Doctrine\ORM\Persisters;

use Doctrine\ORM\Exception\PersisterException;
use Doctrine\ORM\ORMException;
use LogicException;

use function sprintf;

Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Query/AST/Functions/ConcatFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;

use function call_user_func_array;

/**
* "CONCAT" "(" StringPrimary "," StringPrimary {"," StringPrimary }* ")"
*
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Query/AST/GroupByClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Doctrine\ORM\Query\AST;

use Doctrine\ORM\Query\Expr\GroupBy;

class GroupByClause extends Node
{
/** @var mixed[] */
Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Query/Exec/MultiTableUpdateExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Doctrine\ORM\Query\ParameterTypeInferer;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Utility\PersisterHelper;
use Throwable;

use function array_merge;
use function array_reverse;
Expand Down
3 changes: 0 additions & 3 deletions lib/Doctrine/ORM/Query/Filter/SQLFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
namespace Doctrine\ORM\Query\Filter;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query\ParameterTypeInferer;
use InvalidArgumentException;
use RuntimeException;

use function array_map;
use function implode;
use function is_array;
use function ksort;
use function serialize;

Expand Down
1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Query/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM\Query;

use Doctrine\Deprecations\Deprecation;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query;
Expand Down
2 changes: 0 additions & 2 deletions lib/Doctrine/ORM/Query/QueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
namespace Doctrine\ORM\Query;

use Doctrine\ORM\Exception\ORMException;
use Doctrine\ORM\Mapping\AssociationMetadata;
use Doctrine\ORM\Query\AST\PathExpression;
use Exception;
use LogicException;

/**
* Description of QueryException.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Doctrine\ORM\Repository\Exception;

use BadMethodCallException;
use Doctrine\ORM\Exception\ORMException;
use Doctrine\ORM\Exception\RepositoryException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Doctrine\ORM\Repository\Exception;

use BadMethodCallException;
use Doctrine\ORM\Exception\ORMException;
use Doctrine\ORM\Exception\RepositoryException;

Expand Down
Loading