<?php abstract class A { static function call() { return static::test(5); } abstract static function test(int $x): int; } class B extends A { static function test(int $x): int { return $x * 2; } } echo B::call();
You have javascript disabled. You will not be able to edit any code.