1
0
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:
Matthew Brown 2018-04-30 00:31:27 -04:00
parent 1946bc0085
commit 6ad2184b7e

View File

@ -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;