Skip to content

Commit

Permalink
LayerCollector: better message for BC break change
Browse files Browse the repository at this point in the history
This changed from 'layer' to 'value' in 2.0
  • Loading branch information
janedbal authored and gennadigennadigennadi committed May 24, 2024
1 parent 749529d commit 927f77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Layer/Collector/LayerCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(private readonly LayerResolverInterface $resolver) {
public function satisfy(array $config, TokenReferenceInterface $reference): bool
{
if (!isset($config['value']) || !is_string($config['value'])) {
throw InvalidCollectorDefinitionException::invalidCollectorConfiguration('LayerCollector needs the layer configuration.');
throw InvalidCollectorDefinitionException::invalidCollectorConfiguration('LayerCollector needs the layer configuration, expected \'value\' config is missing or invalid.');
}
$layer = $config['value'];

Expand Down

0 comments on commit 927f77f

Please sign in to comment.