mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
9e45ac53ce
It was introduced after 7.0.5 release by attempt to fix bug #71428.
16 lines
358 B
PHP
16 lines
358 B
PHP
--TEST--
|
|
bug #71428.1: inheritance with null default values
|
|
--XFAIL--
|
|
This is a BC break
|
|
--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
|
|
|