Skip to content

Commit 8cc5b4c

Browse files
authored
import fix (php-kafka#31)
1 parent 639c4a4 commit 8cc5b4c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Parser/TokenParser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace PhpKafka\PhpAvroSchemaGenerator\Parser;
66

7-
use ReflectionUnionType;
8-
use ReflectionNamedType;
97
use PhpKafka\PhpAvroSchemaGenerator\PhpClass\PhpClassProperty;
108
use ReflectionClass;
119
use ReflectionProperty;
@@ -207,7 +205,7 @@ public function getPropertyClass(ReflectionProperty $property, bool $ignorePrimi
207205
if (version_compare($phpVersion, '7.4.0', '>=') && null !== $property->getType()) {
208206
$reflectionType = $property->getType();
209207

210-
if ($reflectionType instanceof ReflectionNamedType) {
208+
if ($reflectionType instanceof \ReflectionNamedType) {
211209
$type = $reflectionType->getName();
212210
}
213211
}

0 commit comments

Comments
 (0)