Searched refs:enum (Results 1 – 5 of 5) sorted by relevance
14 enum InfixAssociativity
17 enum ExpressionParserType: string
1563 public static function enumCases(string $enum): array argument1565 if (!enum_exists($enum)) {1566 throw new RuntimeError(\sprintf('Enum "%s" does not exist.', $enum));1569 return $enum::cases();1583 public static function enum(string $enum): \UnitEnum function in Twig\\Extension\\CoreExtension1585 if (!enum_exists($enum)) {1586 throw new RuntimeError(\sprintf('"%s" is not an enum.', $enum));1589 if (!$cases = $enum::cases()) {1590 throw new RuntimeError(\sprintf('"%s" is an empty enum.', $enum));
196 * Add the `enum` function
1 …enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerabl…