<?php declare(strict_types=1); trait ControlHelper { public const CONTROL_TEST = 'test'; public function getControl(string $name = self::CONTROL_TEST): void { } } abstract class BasePresenter { use ControlHelper; } class Presenter extends BasePresenter { } $method = new ReflectionMethod(Presenter::class, 'getControl'); foreach ($method->getParameters() as $param) { $tmp = $param->getDefaultValue(); var_dump($tmp); }
You have javascript disabled. You will not be able to edit any code.