1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +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 GitHub
parent 1a5d5e4476
commit 11576951f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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