Skip to content

Commit

Permalink
Update version number for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
shakaran committed Aug 31, 2021
1 parent d7a3399 commit 3aeb687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knp/Menu/Renderer/ListRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function renderItem(ItemInterface $item, array $options): string
$class[] = $options['currentClass'];
} elseif ($this->matcher->isAncestor($item, $options['matchingDepth'])) {
if (isset($options['ancestorClass']) { // Deprecated: it will be removed in future (@see: ancestor_class)
trigger_deprecation('knplabs/knp-menu', '3.2', 'Using "%s" option is deprecated, use "%s" instead.', 'ancestorClass', 'ancestor_class');
trigger_deprecation('knplabs/knp-menu', '3.3', 'Using "%s" option is deprecated, use "%s" instead.', 'ancestorClass', 'ancestor_class');
$options['ancestor_class'] = $options['ancestorClass'];
}
$class[] = $options['ancestor_class'];
Expand Down

0 comments on commit 3aeb687

Please sign in to comment.