1--TEST--
2Check that both warning and unresolved during early binding is handled
3--FILE--
4<?php
5class Test extends SplObjectStorage {
6    function valid() {}
7    function current(): Unknown {}
8}
9?>
10--EXPECTF--
11Deprecated: Return type of Test::valid() should either be compatible with SplObjectStorage::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in %s on line %d
12
13Fatal error: Could not check compatibility between Test::current(): Unknown and SplObjectStorage::current(): object, because class Unknown is not available in %s on line %d
14