1--TEST--
2String enum value with heredoc
3--FILE--
4<?php
5
6enum Foo: string {
7    case Bar = <<<BAR
8    Bar
9    bar
10    bar
11    BAR;
12
13    case Baz = <<<'BAZ'
14    Baz
15    baz
16    baz
17    BAZ;
18}
19
20echo Foo::Bar->value . "\n";
21echo Foo::Baz->value . "\n";
22
23?>
24--EXPECT--
25Bar
26bar
27bar
28Baz
29baz
30baz
31