Skip to content

Commit a9038eb

Browse files
committed
Resolve psalm deprecations
1 parent 7d8e5ef commit a9038eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
findUnusedCode="true"
55
findUnusedPsalmSuppress="true"
66
findUnusedVariablesAndParams="true"
7+
findUnusedBaselineEntry="true"
78
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
89
xmlns="https://getpsalm.org/schema/config"
910
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

src/Provider/RexTypeReturnProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private static function resolveType(Expr $typeExpr, ?Expr $defaultExpr = null):
100100
return Type::getMixed();
101101
}
102102

103-
if ($defaultExpr instanceof ConstFetch && 'null' === $defaultExpr->name->parts[0]) {
103+
if ($defaultExpr instanceof ConstFetch && 'null' === $defaultExpr->name->getFirst()) {
104104
return $type->getBuilder()->addType(new TNull())->freeze();
105105
}
106106

0 commit comments

Comments
 (0)