Skip to content

Commit d7f18cd

Browse files
committed
phpcs
1 parent ab87d4b commit d7f18cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/GraphQL/Mutation/Artist/Create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
use App\GraphQL\Field;
1010
use Doctrine\Laminas\Hydrator\DoctrineObject;
1111
use Doctrine\ORM\EntityManager;
12-
use Exception;
1312
use GraphQL\Error\Error;
1413
use GraphQL\Type\Definition\ResolveInfo;
14+
use Throwable;
1515

1616
class Create implements Field
1717
{
@@ -38,7 +38,7 @@ public static function getDefinition(
3838

3939
try {
4040
$driver->get(EntityManager::class)->flush();
41-
} catch (Exception $e) {
41+
} catch (Throwable $e) {
4242
throw new Error($e->getMessage());
4343
}
4444

0 commit comments

Comments
 (0)