Skip to content

Commit 6e06fb4

Browse files
committed
Update all PHP deps #10257
1 parent 993d185 commit 6e06fb4

28 files changed

+1309
-606
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"php": "^8.2",
4040
"doctrine/orm": "^3.2",
4141
"psr/container": "^1.1 || ^2.0",
42-
"webonyx/graphql-php": "^15.7"
42+
"webonyx/graphql-php": "^15.12"
4343
},
4444
"require-dev": {
4545
"friendsofphp/php-cs-fixer": "@stable",

composer.lock

Lines changed: 1277 additions & 576 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ parameters:
66
excludePaths:
77
- tests/Blog/Model/*
88
- tests/AttributeBlog/Model/*
9-
checkMissingIterableValueType: false
10-
checkGenericClassInNonGenericObjectType: false
119
ignoreErrors:
1210
- '~^Parameter #2 \$type of static method GraphQL\\Doctrine\\Utils::getOperatorTypeName~'
1311
- '~^Parameter #1 \$method of method GraphQL\\Doctrine\\Factory\\AbstractFieldsConfigurationFactory\:\:getMethodFullName\(\) expects ReflectionMethod, ReflectionFunctionAbstract given\.$~'
@@ -17,6 +15,10 @@ parameters:
1715
- '~^Parameter \#1 \$type of static method GraphQL\\Type\\Definition\\Type\:\:nonNull\(\) expects~'
1816
- '~^Parameter \#1 \$config of class GraphQL\\Type\\Definition\\InputObjectType constructor expects~'
1917
- '~^Parameter \#1 \$config of method GraphQL\\Type\\Definition\\InputObjectType\:\:__construct~'
18+
-
19+
identifier: missingType.iterableValue
20+
-
21+
identifier: missingType.generics
2022

2123
includes:
2224
- phpstan-baseline.neon

src/TypesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function createFilteredQueryBuilder(string $className, array $filter, arr
135135
* `loadType` with the `typeLoader`. Because dedicated `get*()` methods are easier to use, and provide
136136
* stronger typing.
137137
*
138-
* @return null|(Type&NamedType)
138+
* @return null|(NamedType&Type)
139139
*/
140140
public function loadType(string $typeName, string $namespace): ?Type;
141141
}

tests/Blog/Model/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ public function isAdministrator(): bool
129129
* @param null|string $status the status of posts as defined in \GraphQLTests\Doctrine\Blog\Model\Post
130130
*/
131131
public function getPosts(
132-
#[API\Argument(type: '?GraphQLTests\Doctrine\Blog\Types\PostStatusType')] ?string $status = Post::STATUS_PUBLIC
132+
#[API\Argument(type: '?GraphQLTests\Doctrine\Blog\Types\PostStatusType')]
133+
?string $status = Post::STATUS_PUBLIC
133134
): Collection {
134135
// Return unfiltered collection
135136
if ($status === null) {

tests/TypesTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use GraphQLTests\Doctrine\Blog\Types\CustomType;
1616
use GraphQLTests\Doctrine\Blog\Types\DateTimeType;
1717
use GraphQLTests\Doctrine\Blog\Types\PostStatusType;
18+
use PHPUnit\Framework\Attributes\DataProvider;
1819
use PHPUnit\Framework\TestCase;
1920
use stdClass;
2021

@@ -157,9 +158,7 @@ public function testHas(): void
157158
self::assertTrue($this->types->has('customName'), 'should have custom registered type by its name, even if custom key was different, once type is created');
158159
}
159160

160-
/**
161-
* @dataProvider provideLoadType
162-
*/
161+
#[DataProvider('provideLoadType')]
163162
public function testLoadType(string $typeName): void
164163
{
165164
$type = $this->types->loadType($typeName, 'GraphQLTests\Doctrine\Blog\Model');

tests/data/query-builder/alternative-groups-with-multiple-joins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// posts whose author contains John and Jane, OR posts whose author contains Jake and post title contains foo
66
return [
77
'SELECT post1, user1 FROM GraphQLTests\Doctrine\Blog\Model\Post post1 INNER JOIN post1.user user1 WHERE (user1.name LIKE :filter1 AND user1.name LIKE :filter2) OR (user1.name LIKE :filter3 AND post1.title LIKE :filter4)',
8-
\GraphQLTests\Doctrine\Blog\Model\Post::class,
8+
GraphQLTests\Doctrine\Blog\Model\Post::class,
99
[
1010
'groups' => [
1111
[

tests/data/query-builder/custom-filter-empty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// all posts whose title contains "foo"
66
return [
77
'SELECT post1 FROM GraphQLTests\Doctrine\Blog\Model\Post post1',
8-
\GraphQLTests\Doctrine\Blog\Model\Post::class,
8+
GraphQLTests\Doctrine\Blog\Model\Post::class,
99
[
1010
'groups' => [
1111
[

tests/data/query-builder/custom-filter-inherited.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// all posts whose title contains "foo"
66
return [
77
'SELECT post1 FROM GraphQLTests\Doctrine\Blog\Model\Post post1 WHERE MOD(post1.id, :filter1) = 0',
8-
\GraphQLTests\Doctrine\Blog\Model\Post::class,
8+
GraphQLTests\Doctrine\Blog\Model\Post::class,
99
[
1010
'groups' => [
1111
[

tests/data/query-builder/custom-filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// all posts whose title contains "foo"
66
return [
77
'SELECT post1 FROM GraphQLTests\Doctrine\Blog\Model\Post post1 WHERE ((post1.title LIKE :filter1 OR post1.body LIKE :filter1 OR post1.status LIKE :filter1) AND (post1.title LIKE :filter2 OR post1.body LIKE :filter2 OR post1.status LIKE :filter2))',
8-
\GraphQLTests\Doctrine\Blog\Model\Post::class,
8+
GraphQLTests\Doctrine\Blog\Model\Post::class,
99
[
1010
'groups' => [
1111
[

0 commit comments

Comments
 (0)