blob: af9032949c31bc9d519a777d8e7299617e7d08d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Missing interface method a object return type during inheritance
--FILE--
<?php
interface One {
public function a() : object;
}
interface Two extends One {
public function a();
}
--EXPECTF--
Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line %d
|