Senden Sie Parameter an die Funktion in PHP CAN NULL
function foo(?Type $t) {
}
this will result in
$this->foo(new Type()); // ok
$this->foo(null); // ok
$this->foo(); // error
Excited Elephant