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.3.phpt ('bug #71428: Validation type inheritance with = NULL')

Script

1: <?php
2:
class { }
3: class 
B           {  public function m(A $a NULL$n) { echo "B.m";} };
4: class 
extends {  public function m(A $a       $n) { echo "C.m";} };
5:
?>
6:

Expected

Warning: Declaration of C::m(A $a, $n) should be compatible with B::m(A $a = NULL, $n) in %sbug71428.3.php on line 4

Output


Diff

001+ 
001- Warning: Declaration of C::m(A $a, $n) should be compatible with B::m(A $a = NULL, $n) in %sbug71428.3.php on line 4

 

Generated at Wed, 08 Nov 2017 19:36:35 +0000 (8 days ago)

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