1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Make UnitEnum name property non-empty

This commit is contained in:
Ricardo Boss 2021-11-22 13:38:08 +01:00 committed by GitHub
parent cd8ba5cd88
commit 6d58a708fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
<?php
namespace {
interface UnitEnum {
/** @var non-empty-string $name */
public string $name;
/** @return non-empty-list<static> */
public static function cases(): array;
}