1--TEST--
2class name as scalar from ::class keyword error using parent in class constant
3--FILE--
4<?php
5
6namespace Foo\Bar {
7    class One {
8        const Baz = parent::class;
9    }
10    var_dump(One::Baz);
11}
12?>
13--EXPECTF--
14Deprecated: Cannot use "parent" when current class scope has no parent in %s on line %d
15
16Fatal error: Uncaught Error: Cannot use "parent" when current class scope has no parent in %s:%d
17Stack trace:
18#0 {main}
19  thrown in %s on line %d
20