Skip to content

Commit 5f943e3

Browse files
authored
fix(graphql): wrong exception namespace (#6647)
fixes #6646
1 parent 0764a3f commit 5f943e3

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the API Platform project.
5+
*
6+
* (c) Kévin Dunglas <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace ApiPlatform\GraphQl\Exception;
15+
16+
final class InvalidTypeException extends \RuntimeException
17+
{
18+
}

src/GraphQl/Type/FieldsBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use ApiPlatform\Doctrine\Odm\State\Options as ODMOptions;
1717
use ApiPlatform\Doctrine\Orm\State\Options;
18+
use ApiPlatform\GraphQl\Exception\InvalidTypeException;
1819
use ApiPlatform\GraphQl\Resolver\Factory\ResolverFactory;
1920
use ApiPlatform\GraphQl\Resolver\Factory\ResolverFactoryInterface;
2021
use ApiPlatform\GraphQl\Type\Definition\TypeInterface;
@@ -36,7 +37,6 @@
3637
use GraphQL\Type\Definition\Type as GraphQLType;
3738
use GraphQL\Type\Definition\WrappingType;
3839
use Psr\Container\ContainerInterface;
39-
use Symfony\Component\Config\Definition\Exception\InvalidTypeException;
4040
use Symfony\Component\PropertyInfo\Type;
4141
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
4242
use Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter;

0 commit comments

Comments
 (0)