summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71428.1.phpt
blob: e4d3a22f670845f2da98896715ea4799a62658dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
bug #71428.1: inheritance with null default values
--FILE--
<?php
class A {
    public function m(array $a = null) {}
}
class B extends A {
    public function m(array $a = []) {}
}
--EXPECTF--
Warning: Declaration of B::m(array $a = Array) should be compatible with A::m(?array $a = NULL) in %sbug71428.1.php on line 7