<?php declare(strict_types=1); class Foo {}; function takesFoo(Foo $foo = null) { var_dump($foo); } takesFoo(new Foo); takesFoo(); takesFoo(null);
You have javascript disabled. You will not be able to edit any code.