Skip to content

Commit 27b131a

Browse files
committed
✨ Road to PHP8: remove unused use
`use phpDocumentor\Reflection\Types\Mixed;` uses the reserved `mixed` keyword
1 parent c47b78f commit 27b131a

File tree

6 files changed

+1
-25
lines changed

6 files changed

+1
-25
lines changed

src/AggregateControllerQueryProvider.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,11 @@
33

44
namespace TheCodingMachine\GraphQL\Controllers;
55

6-
use phpDocumentor\Reflection\Type;
7-
use phpDocumentor\Reflection\Types\Array_;
8-
use phpDocumentor\Reflection\Types\Mixed;
9-
use phpDocumentor\Reflection\Types\Object_;
10-
use phpDocumentor\Reflection\Types\String_;
116
use Psr\Container\ContainerInterface;
12-
use Roave\BetterReflection\Reflection\ReflectionClass;
13-
use Roave\BetterReflection\Reflection\ReflectionMethod;
147
use Doctrine\Common\Annotations\Reader;
15-
use phpDocumentor\Reflection\Types\Integer;
16-
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
178
use TheCodingMachine\GraphQL\Controllers\Security\AuthenticationServiceInterface;
189
use TheCodingMachine\GraphQL\Controllers\Security\AuthorizationServiceInterface;
1910
use Youshido\GraphQL\Field\Field;
20-
use Youshido\GraphQL\Type\ListType\ListType;
21-
use Youshido\GraphQL\Type\NonNullType;
22-
use Youshido\GraphQL\Type\Scalar\IntType;
23-
use Youshido\GraphQL\Type\Scalar\StringType;
24-
use Youshido\GraphQL\Type\TypeInterface;
25-
use Youshido\GraphQL\Type\Union\UnionType;
2611

2712
/**
2813
* A query provider that looks into all controllers of your application to fetch queries.

src/GraphQLMiddleware.php

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

44
use GraphQL\GraphQL;
55
use Youshido\GraphQL\Schema\AbstractSchema;
6-
use Psr\Http\Message\ResponseInterface;
76
use Psr\Http\Message\ServerRequestInterface;
87
use Youshido\GraphQL\Execution\Processor;
98
use Zend\Diactoros\Response\JsonResponse;

src/QueryField.php

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

44
namespace TheCodingMachine\GraphQL\Controllers;
55

6-
use TheCodingMachine\GraphQL\Controllers\Registry\Registry;
76
use Youshido\GraphQL\Execution\ResolveInfo;
87
use Youshido\GraphQL\Field\AbstractField;
98
use Youshido\GraphQL\Type\AbstractType;

src/TypeMappingException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use phpDocumentor\Reflection\Type;
88
use phpDocumentor\Reflection\Types\Array_;
99
use phpDocumentor\Reflection\Types\Mixed_;
10-
use Roave\BetterReflection\Reflection\ReflectionFunction;
1110
use Roave\BetterReflection\Reflection\ReflectionMethod;
1211
use Roave\BetterReflection\Reflection\ReflectionParameter;
1312

tests/AggregateControllerQueryProviderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
namespace TheCodingMachine\GraphQL\Controllers;
44

55
use Doctrine\Common\Annotations\AnnotationReader;
6-
use PHPUnit\Framework\TestCase;
7-
use Psr\Container\ContainerExceptionInterface;
86
use Psr\Container\ContainerInterface;
9-
use Psr\Container\NotFoundExceptionInterface;
107
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestController;
118
use TheCodingMachine\GraphQL\Controllers\Security\VoidAuthenticationService;
129
use TheCodingMachine\GraphQL\Controllers\Security\VoidAuthorizationService;

tests/ControllerQueryProviderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace TheCodingMachine\GraphQL\Controllers;
44

55
use Doctrine\Common\Annotations\AnnotationReader;
6-
use PHPUnit\Framework\TestCase;
76
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestController;
87
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject;
98
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestType;
@@ -13,13 +12,11 @@
1312
use Youshido\GraphQL\Type\InputObject\InputObjectType;
1413
use Youshido\GraphQL\Type\ListType\ListType;
1514
use Youshido\GraphQL\Type\NonNullType;
16-
use Youshido\GraphQL\Type\Object\ObjectType;
1715
use Youshido\GraphQL\Type\Scalar\BooleanType;
1816
use Youshido\GraphQL\Type\Scalar\DateTimeType;
1917
use Youshido\GraphQL\Type\Scalar\FloatType;
2018
use Youshido\GraphQL\Type\Scalar\IntType;
2119
use Youshido\GraphQL\Type\Scalar\StringType;
22-
use Youshido\GraphQL\Type\TypeInterface;
2320
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
2421

2522
class ControllerQueryProviderTest extends AbstractQueryProviderTest
@@ -131,4 +128,4 @@ public function testQueryProviderWithFixedReturnType()
131128

132129
$this->assertInstanceOf(TestType::class, $fixedQuery->getType());
133130
}
134-
}
131+
}

0 commit comments

Comments
 (0)