summaryrefslogtreecommitdiff
path: root/Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt
blob: eb0e98b63555d79b34ce61e921f265beb5f38073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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