Browse Source

Fix up docblocks

mscherer 3 years ago
parent
commit
133ec06f44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Model/Entity/EnumTrait.php

+ 2 - 2
src/Model/Entity/EnumTrait.php

@@ -9,10 +9,10 @@ trait EnumTrait {
 	 * Now also supports reordering/filtering
 	 *
 	 * @link https://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
-	 * @param array|string|int|null $value Integer or array of keys or NULL for complete array result
+	 * @param array<string|int>|string|int|null $value Integer or array of keys or NULL for complete array result
 	 * @param array<string|int, mixed> $options Options
 	 * @param string|null $default Default value
-	 * @return array|string|null
+	 * @return array<string|int, mixed>|string|null
 	 */
 	public static function enum($value, array $options, $default = null) {
 		if ($value !== null && !is_array($value)) {