Home
last modified time | relevance | path

Searched refs:BackedEnum (Results 1 – 16 of 16) sorted by relevance

/PHP-8.2/Zend/tests/enum/
H A Dno-class-implements-backed-enum.phpt2 Class cannot implement BackedEnum
6 class Foo implements BackedEnum {}
10 Fatal error: Non-enum class Foo cannot implement interface BackedEnum in %s on line %d
H A Dno-enum-implements-backed-enum.phpt2 Enum cannot manually implement BackedEnum
6 enum Foo: int implements BackedEnum {}
10 Fatal error: Enum Foo cannot implement previously implemented interface BackedEnum in %s on line %d
H A Dno-non-backed-enum-implements-backed-enum.phpt2 Non-backed enum cannot implement BackedEnum
6 enum Foo implements BackedEnum {}
10 Fatal error: Non-backed enum Foo cannot implement interface BackedEnum in %s on line %d
H A Dinstanceof-backed-enum.phpt2 Auto implement BackedEnum interface
14 var_dump(Foo::Bar instanceof BackedEnum);
15 var_dump(Baz::Qux instanceof BackedEnum);
H A Dbacked-from-unknown-hash.phpt2 BackedEnum::from() unknown hash
H A Dbacked-tryFrom-unknown-hash.phpt2 BackedEnum::tryFrom() unknown hash
H A Dbacked-tryFrom-casing.phpt2 BackedEnum::tryFrom() casing in reflection
H A Dbacked-from-invalid-int.phpt2 BackedEnum::from() reject invalid int
H A Dbacked-from-invalid-string.phpt2 BackedEnum::from() reject invalid string
H A Dbacked-from-invalid-type.phpt2 BackedEnum::from() reject invalid type
H A Dbacked-from.phpt2 BackedEnum::from()
H A Dbacked-tryFrom.phpt2 BackedEnum::tryFrom()
H A Dinternal_enums.phpt19 var_dump($foo instanceof BackedEnum);
/PHP-8.2/Zend/
H A Dzend_enum_arginfo.h25 …ZEND_ABSTRACT_ME_WITH_FLAGS(BackedEnum, from, arginfo_class_BackedEnum_from, ZEND_ACC_PUBLIC|ZEND_…
26 …ZEND_ABSTRACT_ME_WITH_FLAGS(BackedEnum, tryFrom, arginfo_class_BackedEnum_tryFrom, ZEND_ACC_PUBLIC…
H A Dzend_enum.stub.php10 interface BackedEnum extends UnitEnum interface
/PHP-8.2/
H A DUPGRADING.INTERNALS61 similiar to BackedEnum::from() and BackedEnum::tryFrom().

Completed in 13 milliseconds