Skip to content
PHP Ecosystem
Explore

ServerVariableGrouper

API reference › Debug Core › Panel › Request › ServerVariableGrouper

final classPHPForge\Debug\Panel\Request\ServerVariableGrouper
Sourcesrc/Panel/Request/ServerVariableGrouper.php

Partitions captured server variables into stable, framework-neutral diagnostic groups.

MethodDescriptionDefined by
group() staticPartitions the captured variables into the declared groups, dropping the groups that stay empty.ServerVariableGrouper
public static function group(array<int|string, mixed> $entries): list<PHPForge\Debug\Panel\Request\ServerVariableGroup>

Partitions the captured variables into the declared groups, dropping the groups that stay empty.

Parameters

ParameterTypeDescription
$entriesarray<int|string, mixed>Captured server variables, keyed by variable name.

Returns

list<ServerVariableGroup>: Non-empty groups in display order.