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-- 14Fatal error: Cannot use "parent" when current class scope has no parent in %s on line %d 15