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 2021-05-13 21:14:54 -04:00
parent bb8ce8817d
commit 3797d7920f

View File

@ -81,7 +81,7 @@ class ArrayMergeReturnTypeProvider implements \Psalm\Plugin\EventHandler\Functio
if ($unpacked_type_part instanceof Type\Atomic\TKeyedArray) {
$max_keyed_array_size = \max(
$max_keyed_array_size,
count($unpacked_type_part->properties)
\count($unpacked_type_part->properties)
);
foreach ($unpacked_type_part->properties as $key => $type) {
@ -192,7 +192,7 @@ class ArrayMergeReturnTypeProvider implements \Psalm\Plugin\EventHandler\Functio
$inner_value_type = TypeCombiner::combine($inner_value_types, $codebase, true);
}
$generic_property_count = count($generic_properties);
$generic_property_count = \count($generic_properties);
if ($generic_properties
&& $generic_property_count < 64