xref: /PHP-8.4/Zend/tests/enum/empty-from.phpt (revision ea297654)
1--TEST--
2Empty enum with from/tryFrom doesn't segfault
3--FILE--
4<?php
5
6enum A: string {}
7
8var_dump(A::tryFrom('B'));
9
10?>
11--EXPECT--
12NULL
13