1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Update ExistingAtomicStaticCallAnalyzer.php (#4761)

The invalid syntax for PHP 7.1+
This commit is contained in:
Denis Smetannikov 2020-12-03 17:24:34 +03:00 committed by Daniil Gentili
parent 74b8198cb4
commit 0882d563fa
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -248,7 +248,7 @@ class ExistingAtomicStaticCallAnalyzer
} elseif ($template_type->param_name === 'TPhpMajorVersion') { } elseif ($template_type->param_name === 'TPhpMajorVersion') {
$template_result->upper_bounds[$template_type->param_name] = [ $template_result->upper_bounds[$template_type->param_name] = [
'fn-' . strtolower((string) $method_id) => new TemplateBound( 'fn-' . strtolower((string) $method_id) => new TemplateBound(
Type::getInt(false, $codebase->php_major_version), Type::getInt(false, $codebase->php_major_version)
) )
]; ];
} else { } else {