1--TEST-- 2class name as scalar from ::class keyword error using static in method signature 3--FILE-- 4<?php 5 6namespace Foo\Bar { 7 class One { 8 public function baz($x = static::class) {} 9 } 10} 11?> 12--EXPECTF-- 13Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d 14