Skip to content

BracketPath

Stateless resolution of legacy bracket-path parameter names (e.g.

“data[0][Application]”) against a plain nested array.

final class BracketPath

SourceRequest/BracketPath.php
MethodDescription
resolve(string $path, array<array-key, mixed> $rootArray): mixedManual, conservative bracket path resolution for nested parameters like foo[0][bar].

public static function resolve(string $path, array<array-key, mixed> $rootArray): mixed

Manual, conservative bracket path resolution for nested parameters like foo[0][bar].

ParameterTypeDescription
$pathstring
$rootArrayarray``<``array-key``, ``mixed``>

Returns mixed