xref: /php-src/Zend/tests/bug73987.phpt (revision fe9860c2)
1--TEST--
2Bug #73987 (Method compatibility check looks to original definition and not parent - nullability interface)
3--FILE--
4<?php
5
6interface I {
7  public function example($a, $b, $c);
8}
9class A implements I {
10  public function example($a, $b = null, $c = null) { } // compatible with I::example
11}
12class B extends A {
13  public function example($a, $b, $c = null) { } // compatible with I::example
14}
15
16?>
17--EXPECTF--
18Fatal error: Declaration of B::example($a, $b, $c = null) must be compatible with A::example($a, $b = null, $c = null) in %s on line %d
19