Skip to content

Commit 1d1436c

Browse files
committed
chore: Fix deprecations for symfony 6 and php8.2
1 parent e567930 commit 1d1436c

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Command/DumpSchemaCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use GraphQL\Type\Definition\TypeWithFields;
88
use GraphQL\Utils\SchemaPrinter;
9+
use Symfony\Component\Console\Attribute\AsCommand;
910
use Symfony\Component\Console\Command\Command;
1011
use Symfony\Component\Console\Input\InputInterface;
1112
use Symfony\Component\Console\Input\InputOption;
@@ -16,10 +17,9 @@
1617
/**
1718
* Shamelessly stolen from Api Platform
1819
*/
20+
#[AsCommand('graphqlite:dump-schema')]
1921
class DumpSchemaCommand extends Command
2022
{
21-
protected static $defaultName = 'graphqlite:dump-schema';
22-
2323
/**
2424
* @var Schema
2525
*/

DependencyInjection/Configuration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
class Configuration implements ConfigurationInterface
1010
{
11+
/**
12+
* @return TreeBuilder
13+
*/
1114
public function getConfigTreeBuilder()
1215
{
1316
$treeBuilder = new TreeBuilder('graphqlite');

GraphiQL/EndpointResolver.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public function __construct(RequestStack $requestStack)
1919
$this->requestStack = $requestStack;
2020
}
2121

22+
/**
23+
* @return string
24+
*/
2225
public function getBySchema($name)
2326
{
2427
if ('default' === $name) {
@@ -31,6 +34,9 @@ public function getBySchema($name)
3134
throw GraphQLEndpointInvalidSchemaException::forSchemaAndResolver($name, self::class);
3235
}
3336

37+
/**
38+
* @return string
39+
*/
3440
public function getDefault()
3541
{
3642
return $this->getBySchema('default');

0 commit comments

Comments
 (0)