1--TEST--
2class name as scalar from ::class keyword error using parent in method signature
3--FILE--
4<?php
5
6namespace Foo\Bar {
7    class One {}
8    class Two extends One {
9        public function baz($x = parent::class) {
10            var_dump($x);
11        }
12    }
13    (new Two)->baz();
14}
15?>
16--EXPECT--
17string(11) "Foo\Bar\One"
18