mirror of
https://github.com/php/php-src.git
synced 2026-04-14 11:32:11 +02:00
RFC: https://wiki.php.net/rfc/enumerations Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> Closes GH-6489.
16 lines
264 B
PHP
16 lines
264 B
PHP
--TEST--
|
|
BackedEnum::tryFrom() casing in reflection
|
|
--FILE--
|
|
<?php
|
|
|
|
enum Foo: string {}
|
|
|
|
$reflectionEnum = new ReflectionEnum(Foo::class);
|
|
$reflectionMethod = $reflectionEnum->getMethod('tryFrom');
|
|
|
|
echo $reflectionMethod->getName() . "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
tryFrom
|