xref: /PHP-7.0/Zend/tests/bug71428.1.phpt (revision 9e45ac53)
1--TEST--
2bug #71428.1: inheritance with null default values
3--XFAIL--
4This is a BC break
5--FILE--
6<?php
7class A {
8    public function m(array $a = null) {}
9}
10class B extends A {
11    public function m(array $a = []) {}
12}
13--EXPECTF--
14Warning: Declaration of B::m(array $a = Array) should be compatible with A::m(array $a = NULL) in %sbug71428.1.php on line 7
15
16