trait NikicConstExprEvaluatorTrait (View source)

Evaluates constant expressions from stub sources to plain PHP values.

Shared by the Nikic adapters that expose a default value (parameters and properties) so both resolve named constants identically. Unlike NikicExprValueResolverTrait — which only understands scalars and unary operators — this handles arrays, constant fetches and class-constant fetches via PhpParser's ConstExprEvaluator.