<?php class X { const Y = 1; } function foo($x = X::Y) {} var_dump((new ReflectionParameter('foo', 'x'))->isDefaultValueConstant());
You have javascript disabled. You will not be able to edit any code.