Skip to content

Commit 8ac258a

Browse files
committed
Fix phpstan issues
1 parent a2e2fd1 commit 8ac258a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/JsonMapper/Type/TypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function resolve(string $className, string $propertyName): Type
6262

6363
$type = $this->extractor->getType($className, $propertyName);
6464

65-
if ($type === null) {
65+
if (!($type instanceof Type)) {
6666
$type = $this->resolveFromReflection($className, $propertyName);
6767
}
6868

tests/JsonMapper/Type/TypeResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function getType(string $class, string $property, array $context = []): ?
249249
/**
250250
* @param array<array-key, mixed> $context
251251
*/
252-
public function getTypes(string $class, string $property, array $context = []): ?array
252+
public function getTypes(string $class, string $property, array $context = []): null
253253
{
254254
return null;
255255
}

0 commit comments

Comments
 (0)