mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
fe9860c2b0
Closes GH-5361
13 lines
315 B
PHP
13 lines
315 B
PHP
--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--
|
|
Fatal error: Declaration of B::m(array $a = []) must be compatible with A::m(?array $a = null) in %s on line %d
|