mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-20 08:05:29 +01:00
add resource type to StaticTypeMapper
This commit is contained in:
parent
1290c83cb4
commit
e520cf9416
@ -422,6 +422,10 @@ final class StaticTypeMapper
|
||||
return 'callable';
|
||||
}
|
||||
|
||||
if ($phpStanType instanceof ResourceType) {
|
||||
return 'resource';
|
||||
}
|
||||
|
||||
throw new NotImplementedException(__METHOD__ . ' for ' . get_class($phpStanType));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user