1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-16 11:26:55 +01:00
psalm/src/Psalm/Storage/CustomMetadataTrait.php
Bruce Weirdan abb1c95b94 Limited custom metadata to be (array of) scalars
Also moved `$custom_metadata` property to trait
2019-02-25 10:19:31 -05:00

12 lines
251 B
PHP

<?php
namespace Psalm\Storage;
/**
* @psalm-type _MetadataEntry scalar|scalar[]|scalar[][]|scalar[][][]|scalar[][][][]|scalar[][][][][]
*/
trait CustomMetadataTrait
{
/** @var array<string,_MetadataEntry> */
public $custom_metadata = [];
}