1--TEST-- 2Nullable return type inheritance rules (nullable and non-nullable) 3--FILE-- 4<?php 5class A { 6 function foo(): ?int {} 7} 8class B extends A { 9 function foo(): int {} 10} 11?> 12DONE 13--EXPECT-- 14DONE 15