summaryrefslogtreecommitdiff
path: root/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt
blob: 5776f9b99d473da3ea0937d3f4003b704a59e05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Nullable covariant return types

--FILE--
<?php

interface A {
    function method(): ?int;
}

interface B extends A {
    function method(): int;
}

--EXPECT--