1--TEST-- 2Test that the void return type can't be overridden by the mixed type 3--FILE-- 4<?php 5 6class Foo 7{ 8 public function method(): void {} 9} 10 11class Bar extends Foo 12{ 13 public function method(): mixed {} 14} 15 16?> 17--EXPECTF-- 18Fatal error: Declaration of Bar::method(): mixed must be compatible with Foo::method(): void in %s on line %d 19