Searched refs:tryFrom (Results 1 – 10 of 10) sorted by relevance
/PHP-8.1/Zend/tests/enum/ |
H A D | backed-tryFrom.phpt | 2 BackedEnum::tryFrom() 13 var_dump(Suit::tryFrom('H')); 14 var_dump(Suit::tryFrom('D')); 15 var_dump(Suit::tryFrom('C')); 16 var_dump(Suit::tryFrom('S')); 17 var_dump(Suit::tryFrom('X')); 25 var_dump(Foo::tryFrom(1)); 26 var_dump(Foo::tryFrom(2)); 27 var_dump(Foo::tryFrom(3)); 28 var_dump(Foo::tryFrom(4));
|
H A D | backed-tryFrom-casing.phpt | 2 BackedEnum::tryFrom() casing in reflection 9 $reflectionMethod = $reflectionEnum->getMethod('tryFrom'); 15 tryFrom
|
H A D | internal_enums_strict_types.phpt | 2 Internal enums from/tryFrom in strict_types=1 19 var_dump(ZendTestStringEnum::tryFrom(43)); 28 ZendTestStringEnum::tryFrom(): Argument #1 ($value) must be of type string, int given
|
H A D | internal_enums.phpt | 23 var_dump(ZendTestStringEnum::tryFrom("Test3")); 24 var_dump(ZendTestStringEnum::tryFrom(42)); 25 var_dump(ZendTestStringEnum::tryFrom(43)); 26 var_dump(ZendTestStringEnum::tryFrom(0));
|
H A D | backed-tryFrom-unknown-hash.phpt | 2 BackedEnum::tryFrom() unknown hash 13 var_dump(Foo::tryFrom($s));
|
/PHP-8.1/ext/zend_test/tests/ |
H A D | internal-call-internal-static-return.phpt | 17 var_dump(zend_call_method(IntIntStaticInt::class, "tryFrom", 42)); 19 var_dump(zend_call_method(IntIntStaticString::class, "tryFrom", "all the fish"));
|
/PHP-8.1/Zend/ |
H A D | zend_enum.stub.php | 14 public static function tryFrom(int|string $value): ?static; function
|
H A D | zend_enum_arginfo.h | 26 …ZEND_ABSTRACT_ME_WITH_FLAGS(BackedEnum, tryFrom, arginfo_class_BackedEnum_tryFrom, ZEND_ACC_PUBLIC…
|
H A D | zend_enum.c | 384 …ZEND_NAMED_ME(tryFrom, zend_enum_try_from_func, arginfo_class_BackedEnum_tryFrom, ZEND_ACC_PUBLIC …
|
/PHP-8.1/ |
H A D | NEWS | 1193 . Fixed leak in Enum::from/tryFrom for internal enums when using JIT (ilutov)
|
Completed in 17 milliseconds