mirror of
https://codeberg.org/vlw/php-xenum.git
synced 2025-09-13 12:13:42 +02:00
fix(doc): missing text
This commit is contained in:
parent
c581e6f508
commit
6644be84ae
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ enum HelloWorld: string {
|
|||
}
|
||||
|
||||
// Like Enum::tryFrom() but for Enum names instead of values
|
||||
HelloWorld::fromName("FOO"); //
|
||||
HelloWorld::fromName("FOO"); // HelloWorld::FOO
|
||||
// .. and of course the non-throwing version
|
||||
HelloWorld::tryFromName("MOM"); // null
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue