<?php declare(strict_types = 1); class DefaultValue {} define('DEFAULT_VALUE', new DefaultValue); /** * @param int|DefaultValue $a */ function a($a=DEFAULT_VALUE, $b=DEFAULT_VALUE, $c=DEFAULT_VALUE): void { var_dump(func_get_args()); } a(b: 2);
You have javascript disabled. You will not be able to edit any code.