Skip to content

Commit 7ffdeee

Browse files
committed
Fixing mixed detection
1 parent ec39c16 commit 7ffdeee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ControllerQueryProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use phpDocumentor\Reflection\Types\Array_;
88
use phpDocumentor\Reflection\Types\Boolean;
99
use phpDocumentor\Reflection\Types\Float_;
10-
use phpDocumentor\Reflection\Types\Mixed;
10+
use phpDocumentor\Reflection\Types\Mixed_;
1111
use phpDocumentor\Reflection\Types\Object_;
1212
use phpDocumentor\Reflection\Types\String_;
1313
use Roave\BetterReflection\Reflection\ReflectionClass;
@@ -200,7 +200,7 @@ private function mapType(Type $type, array $docBlockTypes, bool $isNullable, boo
200200
{
201201
$graphQlType = null;
202202

203-
if ($type instanceof Array_ || $type instanceof Mixed) {
203+
if ($type instanceof Array_ || $type instanceof Mixed_) {
204204
if (!$isNullable) {
205205
// Let's check a "null" value in the docblock
206206
$isNullable = $this->isNullable($docBlockTypes);

0 commit comments

Comments
 (0)