mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-20 08:05:29 +01:00
add resource type to StaticTypeMapper (#2517)
add resource type to StaticTypeMapper
This commit is contained in:
commit
7ac00f3d80
@ -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