summaryrefslogtreecommitdiff
path: root/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt
blob: 9251d3b4c1a07fddbae80e19bbb76ec376562e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Nullable covariant return types
--FILE--
<?php

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

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