mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Improve highlight_string/highlight_file signatures
This commit is contained in:
parent
1946bc0085
commit
6ad2184b7e
@ -82,7 +82,10 @@ class FunctionChecker extends FunctionLikeChecker
|
||||
return Type::getArray();
|
||||
}
|
||||
|
||||
if ($call_map_key === 'var_export') {
|
||||
if ($call_map_key === 'var_export'
|
||||
|| $call_map_key === 'highlight_string'
|
||||
|| $call_map_key === 'highlight_file'
|
||||
) {
|
||||
if (isset($call_args[1]->value->inferredType)) {
|
||||
$subject_type = $call_args[1]->value->inferredType;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user