Skip to content

Commit

Permalink
✨ Road to PHP8: remove unused use
Browse files Browse the repository at this point in the history
`use phpDocumentor\Reflection\Types\Mixed;` uses the reserved `mixed` keyword
  • Loading branch information
homersimpsons committed Feb 9, 2023
1 parent c47b78f commit 27b131a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 25 deletions.
15 changes: 0 additions & 15 deletions src/AggregateControllerQueryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,11 @@

namespace TheCodingMachine\GraphQL\Controllers;

use phpDocumentor\Reflection\Type;
use phpDocumentor\Reflection\Types\Array_;
use phpDocumentor\Reflection\Types\Mixed;
use phpDocumentor\Reflection\Types\Object_;
use phpDocumentor\Reflection\Types\String_;
use Psr\Container\ContainerInterface;
use Roave\BetterReflection\Reflection\ReflectionClass;
use Roave\BetterReflection\Reflection\ReflectionMethod;
use Doctrine\Common\Annotations\Reader;
use phpDocumentor\Reflection\Types\Integer;
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
use TheCodingMachine\GraphQL\Controllers\Security\AuthenticationServiceInterface;
use TheCodingMachine\GraphQL\Controllers\Security\AuthorizationServiceInterface;
use Youshido\GraphQL\Field\Field;
use Youshido\GraphQL\Type\ListType\ListType;
use Youshido\GraphQL\Type\NonNullType;
use Youshido\GraphQL\Type\Scalar\IntType;
use Youshido\GraphQL\Type\Scalar\StringType;
use Youshido\GraphQL\Type\TypeInterface;
use Youshido\GraphQL\Type\Union\UnionType;

/**
* A query provider that looks into all controllers of your application to fetch queries.
Expand Down
1 change: 0 additions & 1 deletion src/GraphQLMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use GraphQL\GraphQL;
use Youshido\GraphQL\Schema\AbstractSchema;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Youshido\GraphQL\Execution\Processor;
use Zend\Diactoros\Response\JsonResponse;
Expand Down
1 change: 0 additions & 1 deletion src/QueryField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace TheCodingMachine\GraphQL\Controllers;

use TheCodingMachine\GraphQL\Controllers\Registry\Registry;
use Youshido\GraphQL\Execution\ResolveInfo;
use Youshido\GraphQL\Field\AbstractField;
use Youshido\GraphQL\Type\AbstractType;
Expand Down
1 change: 0 additions & 1 deletion src/TypeMappingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use phpDocumentor\Reflection\Type;
use phpDocumentor\Reflection\Types\Array_;
use phpDocumentor\Reflection\Types\Mixed_;
use Roave\BetterReflection\Reflection\ReflectionFunction;
use Roave\BetterReflection\Reflection\ReflectionMethod;
use Roave\BetterReflection\Reflection\ReflectionParameter;

Expand Down
3 changes: 0 additions & 3 deletions tests/AggregateControllerQueryProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
namespace TheCodingMachine\GraphQL\Controllers;

use Doctrine\Common\Annotations\AnnotationReader;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestController;
use TheCodingMachine\GraphQL\Controllers\Security\VoidAuthenticationService;
use TheCodingMachine\GraphQL\Controllers\Security\VoidAuthorizationService;
Expand Down
5 changes: 1 addition & 4 deletions tests/ControllerQueryProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace TheCodingMachine\GraphQL\Controllers;

use Doctrine\Common\Annotations\AnnotationReader;
use PHPUnit\Framework\TestCase;
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestController;
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject;
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestType;
Expand All @@ -13,13 +12,11 @@
use Youshido\GraphQL\Type\InputObject\InputObjectType;
use Youshido\GraphQL\Type\ListType\ListType;
use Youshido\GraphQL\Type\NonNullType;
use Youshido\GraphQL\Type\Object\ObjectType;
use Youshido\GraphQL\Type\Scalar\BooleanType;
use Youshido\GraphQL\Type\Scalar\DateTimeType;
use Youshido\GraphQL\Type\Scalar\FloatType;
use Youshido\GraphQL\Type\Scalar\IntType;
use Youshido\GraphQL\Type\Scalar\StringType;
use Youshido\GraphQL\Type\TypeInterface;
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;

class ControllerQueryProviderTest extends AbstractQueryProviderTest
Expand Down Expand Up @@ -131,4 +128,4 @@ public function testQueryProviderWithFixedReturnType()

$this->assertInstanceOf(TestType::class, $fixedQuery->getType());
}
}
}

0 comments on commit 27b131a

Please sign in to comment.