1--TEST--
2The default value is a constant in the parent class method's signature.
3--FILE--
4<?php
5
6use Foo\Bar;
7
8class A
9{
10    public function foo(
11        $param1 = \Foo\Bar::CONSTANT,
12        $param2 = Foo\Bar::CONSTANT,
13        $param3 = Bar::CONSTANT
14    ) {
15    }
16}
17
18class B extends A
19{
20    public function foo()
21    {
22    }
23}
24?>
25--EXPECTF--
26Fatal error: Declaration of B::foo() must be compatible with A::foo($param1 = Foo\Bar::CONSTANT, $param2 = Foo\Bar::CONSTANT, $param3 = Foo\Bar::CONSTANT) in %s on line %d
27