<?php
interface Bar {}
interface Foo
{
public function aaa(Bar $bar = null);
}
class Baz implements Foo
{
public function aaa(Bar $bar = null) {}
}
class Tab implements Foo
{
public function aaa(?Bar $bar = null) {}
}
Deprecated: Foo::aaa(): Implicitly marking parameter $bar as nullable is deprecated, the explicit nullable type must be used instead in /in/O6fKY on line 6
Deprecated: Baz::aaa(): Implicitly marking parameter $bar as nullable is deprecated, the explicit nullable type must be used instead in /in/O6fKY on line 10