Skip to content

Commit a2c48f6

Browse files
committed
Align PR #2314 to master with only intended one-line NodeList changes
1 parent 0605460 commit a2c48f6

File tree

2 files changed

+39
-36
lines changed

2 files changed

+39
-36
lines changed

composer.json

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,51 @@
2929
"php": "^8",
3030
"ext-json": "*",
3131
"haydenpierce/class-finder": "^0.4 || ^0.5",
32-
"illuminate/auth": "^9 || ^10",
33-
"illuminate/bus": "^9 || ^10",
34-
"illuminate/contracts": "^9 || ^10",
35-
"illuminate/http": "^9 || ^10",
36-
"illuminate/pagination": "^9 || ^10",
37-
"illuminate/queue": "^9 || ^10",
38-
"illuminate/routing": "^9 || ^10",
39-
"illuminate/support": "^9 || ^10",
40-
"illuminate/validation": "^9 || ^10",
41-
"laragraph/utils": "^1.5",
42-
"thecodingmachine/safe": "^1 || ^2",
32+
"illuminate/auth": "^9 || ^10 || ^11 || ^12",
33+
"illuminate/bus": "^9 || ^10 || ^11 || ^12",
34+
"illuminate/contracts": "^9 || ^10 || ^11 || ^12",
35+
"illuminate/http": "^9 || ^10 || ^11 || ^12",
36+
"illuminate/pagination": "^9 || ^10 || ^11 || ^12",
37+
"illuminate/queue": "^9 || ^10 || ^11 || ^12",
38+
"illuminate/routing": "^9 || ^10 || ^11 || ^12",
39+
"illuminate/support": "^9 || ^10 || ^11 || ^12",
40+
"illuminate/validation": "^9 || ^10 || ^11 || ^12",
41+
"laragraph/utils": "^1.5 || ^2",
42+
"thecodingmachine/safe": "^1 || ^2 || ^3",
4343
"webonyx/graphql-php": "dev-nodelist-array-access as 15.1.1"
4444
},
4545
"require-dev": {
46-
"algolia/algoliasearch-client-php": "^3 || ^4",
46+
"algolia/algoliasearch-client-php": "^3",
4747
"bensampo/laravel-enum": "^5 || ^6",
48-
"dms/phpunit-arraysubset-asserts": "^0.4",
4948
"ergebnis/composer-normalize": "^2.2.2",
50-
"laravel/framework": "^9 || ^10",
49+
"fakerphp/faker": "^1.21",
50+
"google/protobuf": "^3.21",
51+
"larastan/larastan": "^2.9.14 || ^3.0.4",
52+
"laravel/framework": "^9 || ^10 || ^11 || ^12",
5153
"laravel/legacy-factories": "^1.1.1",
52-
"laravel/lumen-framework": "^9 || ^10 || dev-master",
54+
"laravel/pennant": "^1",
5355
"laravel/scout": "^8 || ^9 || ^10",
54-
"mll-lab/graphql-php-scalars": "^6",
56+
"mattiasgeniar/phpunit-query-count-assertions": "^1.1",
57+
"mll-lab/graphql-php-scalars": "^6.4.1",
5558
"mll-lab/php-cs-fixer-config": "^5",
5659
"mockery/mockery": "^1.5",
57-
"nesbot/carbon": "^2.62.1",
58-
"nunomaduro/larastan": "^2",
59-
"orchestra/testbench": "^7.7 || ^8.8",
60+
"nesbot/carbon": "^2.62.1 || ^3.8.4",
61+
"orchestra/testbench": "^7.50 || ^8.32 || ^9.10 || ^10.1",
6062
"phpbench/phpbench": "^1.2.6",
61-
"phpstan/phpstan": "^1.8.4",
62-
"phpstan/phpstan-mockery": "^0.12 || ^1.1",
63-
"phpstan/phpstan-phpunit": "^0.12 || ^1.1.1",
64-
"phpunit/phpunit": "^9.5.24",
63+
"phpstan/extension-installer": "^1",
64+
"phpstan/phpstan": "^1.12.18 || ^2",
65+
"phpstan/phpstan-mockery": "^1.1.3 || ^2",
66+
"phpstan/phpstan-phpunit": "^1.1.1 || ^2",
67+
"phpunit/phpunit": "^9.6.4 || ^10 || ^11 || ^12",
6568
"predis/predis": "^1.1 || ^2.1",
6669
"pusher/pusher-php-server": "^5 || ^6 || ^7.0.2",
67-
"rector/rector": "^0.12.23",
70+
"rector/rector": "^1 || ^2",
6871
"thecodingmachine/phpstan-safe-rule": "^1.2"
6972
},
7073
"suggest": {
71-
"bensampo/laravel-enum": "Convenient enum definitions that can easily be registered in your Schema",
74+
"ext-protobuf": "Improve protobuf serialization performance (used for tracing)",
75+
"google/protobuf": "Required when using the tracing driver federated-tracing",
76+
"laravel/pennant": "Required for the @feature directive",
7277
"laravel/scout": "Required for the @search directive",
7378
"mll-lab/graphql-php-scalars": "Useful scalar types, required for @whereConditions",
7479
"mll-lab/laravel-graphiql": "A graphical interactive in-browser GraphQL IDE - integrated with Laravel",
@@ -91,23 +96,22 @@
9196
"allow-plugins": {
9297
"composer/package-versions-deprecated": true,
9398
"ergebnis/composer-normalize": true,
94-
"kylekatarnls/update-helper": true
99+
"kylekatarnls/update-helper": true,
100+
"phpstan/extension-installer": true
95101
},
96102
"sort-packages": true
97103
},
98104
"extra": {
99105
"laravel": {
100-
"aliases": {
101-
"graphql": "Nuwave\\Lighthouse\\GraphQL"
102-
},
103106
"providers": [
104107
"Nuwave\\Lighthouse\\LighthouseServiceProvider",
108+
"Nuwave\\Lighthouse\\Async\\AsyncServiceProvider",
105109
"Nuwave\\Lighthouse\\Auth\\AuthServiceProvider",
110+
"Nuwave\\Lighthouse\\Bind\\BindServiceProvider",
106111
"Nuwave\\Lighthouse\\Cache\\CacheServiceProvider",
107112
"Nuwave\\Lighthouse\\GlobalId\\GlobalIdServiceProvider",
108113
"Nuwave\\Lighthouse\\OrderBy\\OrderByServiceProvider",
109114
"Nuwave\\Lighthouse\\Pagination\\PaginationServiceProvider",
110-
"Nuwave\\Lighthouse\\Scout\\ScoutServiceProvider",
111115
"Nuwave\\Lighthouse\\SoftDeletes\\SoftDeletesServiceProvider",
112116
"Nuwave\\Lighthouse\\Testing\\TestingServiceProvider",
113117
"Nuwave\\Lighthouse\\Validation\\ValidationServiceProvider"

tests/Unit/Schema/ResolverProviderTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212

1313
final class ResolverProviderTest extends TestCase
1414
{
15-
/** @var \Nuwave\Lighthouse\Schema\ResolverProvider */
16-
protected $resolverProvider;
15+
protected ResolverProvider $resolverProvider;
1716

18-
public function setUp(): void
17+
protected function setUp(): void
1918
{
2019
parent::setUp();
2120

@@ -54,13 +53,13 @@ public function testThrowsIfRootFieldHasNoResolver(): void
5453
$this->resolverProvider->provideResolver($fieldValue);
5554
}
5655

57-
protected function constructFieldValue(string $fieldDefinition, string $parentTypeName = RootType::QUERY): FieldValue
56+
private function constructFieldValue(string $fieldDefinition, string $parentTypeName = RootType::QUERY): FieldValue
5857
{
59-
$queryType = Parser::objectTypeDefinition(/** @lang GraphQL */ "
58+
$queryType = Parser::objectTypeDefinition(/** @lang GraphQL */ <<<GRAPHQL
6059
type {$parentTypeName} {
6160
{$fieldDefinition}
6261
}
63-
");
62+
GRAPHQL);
6463

6564
$typeValue = new TypeValue($queryType);
6665

0 commit comments

Comments
 (0)