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

Add slash

This commit is contained in:
Matthew Brown 2020-07-02 01:32:40 -04:00
parent ea82cdc6ea
commit fab07c58bd

View File

@ -168,7 +168,7 @@ class TClassString extends TString
$as_type_types = \array_values($as_type->getAtomicTypes()); $as_type_types = \array_values($as_type->getAtomicTypes());
$class_string->as_type = count($as_type_types) === 1 $class_string->as_type = \count($as_type_types) === 1
&& $as_type_types[0] instanceof TNamedObject && $as_type_types[0] instanceof TNamedObject
? $as_type_types[0] ? $as_type_types[0]
: null; : null;