class ConfigCollectionRule implements Rule

Upstream checks only Config::collection(); repository calls, including config()->collection(), are checked too.

Methods

__construct(ConfigHelper $configHelper)

Create a new rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report collection() calls for config values that are never arrays.

Details

at line 33
__construct(ConfigHelper $configHelper)

Create a new rule instance.

Parameters

ConfigHelper $configHelper

at line 40
string getNodeType()

Get the node type the rule checks.

Return Value

string

at line 53
array processNode(Node $node, Scope $scope)

Report collection() calls for config values that are never arrays.

Parameters

Node $node
Scope $scope

Return Value

array