1--TEST--
2class name as scalar from ::class keyword error using parent in non class context
3--FILE--
4<?php
5
6$x = parent::class;
7
8?>
9--EXPECTF--
10Fatal error: Cannot access parent::class when no class scope is active in %s on line %d
11