ConfigCollectionRule
class ConfigCollectionRule implements Rule
Upstream checks only Config::collection(); repository calls, including config()->collection(), are checked too.
Methods
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.
at line 40
string
getNodeType()
Get the node type the rule checks.
at line 53
array
processNode(Node $node, Scope $scope)
Report collection() calls for config values that are never arrays.