- Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.15, 8.3.0 - 8.3.2
<?php
class Foo {
function foo(\DateTimeInterface $bar = new \DateTime()) {}
}
class FooDouble extends Foo {
function foo(\DateTimeInterface $bar = null) {}
}
$f = new FooDouble();
$f->foo(null);