PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for Zend/tests/bug71428.1.phpt ('bug #71428.1: inheritance with null default values')

Script

1: <?php
2:
class {
3:     public function 
m(array $a null) {}
4: }
5: class 
extends {
6:     public function 
m(array $a = []) {}
7: }
8:

Expected

Warning: Declaration of B::m(array $a = Array) should be compatible with A::m(array $a = NULL) in %sbug71428.1.php on line 7

Output


Diff

001+ 
001- Warning: Declaration of B::m(array $a = Array) should be compatible with A::m(array $a = NULL) in %sbug71428.1.php on line 7

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (5 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.