xref: /PHP-8.0/Zend/tests/bug71428.1.phpt (revision 7aacc705)
1--TEST--
2bug #71428.1: inheritance with null default values
3--FILE--
4<?php
5class A {
6    public function m(array $a = null) {}
7}
8class B extends A {
9    public function m(array $a = []) {}
10}
11?>
12--EXPECTF--
13Fatal error: Declaration of B::m(array $a = []) must be compatible with A::m(?array $a = null) in %s on line %d
14