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

Add slashes

This commit is contained in:
Matthew Brown 2020-02-02 11:04:29 -05:00
parent b67f661604
commit f981c61990

View File

@ -819,7 +819,7 @@ abstract class Type
if ($t instanceof Atomic\TTemplateParam) {
$t_atomic_types = $t->as->getAtomicTypes();
$t_atomic_type = count($t_atomic_types) === 1 ? reset($t_atomic_types) : null;
$t_atomic_type = \count($t_atomic_types) === 1 ? \reset($t_atomic_types) : null;
if (!$t_atomic_type instanceof TNamedObject) {
$t_atomic_type = null;