<?php interface A { public function foo(string $q, ?array $params, bool $reference): bool; } class B implements A { public function foo(string $q, ?array $params = null, bool $reference = false): bool { return true; } } $class = new B(); var_dump($class->foo('bar'));
You have javascript disabled. You will not be able to edit any code.