1--TEST-- 2The default value is a constant in the parent class method's signature. 3--FILE-- 4<?php 5 6use const Foo\CONSTANT; 7 8class A 9{ 10 public function foo( 11 $param1 = \Foo\CONSTANT, 12 $param2 = Foo\CONSTANT, 13 $param3 = 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\CONSTANT, $param2 = Foo\CONSTANT, $param3 = Foo\CONSTANT) in %s on line %d 27