Skip to content

Commit e5689a0

Browse files
committed
apply fixes (I told you so!)
1 parent ab57314 commit e5689a0

9 files changed

+9
-14
lines changed

src/DependencyInjection/Compiler/AddExtensionsPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* @author Christophe Coevoet <[email protected]>
1414
*
1515
* @internal
16-
* @final
1716
*/
1817
final class AddExtensionsPass implements CompilerPassInterface
1918
{

src/DependencyInjection/Compiler/AddProvidersPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* @author Christophe Coevoet <[email protected]>
1414
*
1515
* @internal
16-
* @final
1716
*/
1817
final class AddProvidersPass implements CompilerPassInterface
1918
{

src/DependencyInjection/Compiler/AddRenderersPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* @author Christophe Coevoet <[email protected]>
1515
*
1616
* @internal
17-
* @final
1817
*/
1918
final class AddRenderersPass implements CompilerPassInterface
2019
{

src/DependencyInjection/Compiler/AddVotersPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* @author Christophe Coevoet <[email protected]>
1414
*
1515
* @internal
16-
* @final
1716
*/
1817
final class AddVotersPass implements CompilerPassInterface
1918
{

src/DependencyInjection/Compiler/MenuBuilderPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @author Christophe Coevoet <[email protected]>
1212
*
1313
* @internal
14-
* @final
1514
*/
1615
final class MenuBuilderPass implements CompilerPassInterface
1716
{

src/DependencyInjection/Compiler/RegisterMenusPass.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* @author Christophe Coevoet <[email protected]>
1414
*
1515
* @internal
16-
* @final
1716
*/
1817
final class RegisterMenusPass implements CompilerPassInterface
1918
{

src/DependencyInjection/KnpMenuExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function load(array $configs, ContainerBuilder $container): void
3232
$container->setParameter('knp_menu.renderer.twig.template', $config['twig']['template']);
3333
}
3434
if ($config['templating']) {
35-
trigger_deprecation('knplabs/knp-menu-bundle', '3.3', 'Using the templating component is deprecated since version 3.3, this option will be removed in version 4.');
35+
\trigger_deprecation('knplabs/knp-menu-bundle', '3.3', 'Using the templating component is deprecated since version 3.3, this option will be removed in version 4.');
3636
$loader->load('templating.xml');
3737
}
3838

src/Provider/BuilderAliasProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ final class BuilderAliasProvider implements MenuProviderInterface
1919
private array $builders = [];
2020

2121
public function __construct(private KernelInterface $kernel, private ContainerInterface $container, private FactoryInterface $menuFactory)
22-
{}
22+
{
23+
}
2324

2425
/**
2526
* Looks for a menu with the bundle:class:method format.
@@ -79,7 +80,6 @@ private function getBuilder(string $bundleName, string $className): object
7980
$name = \sprintf('%s:%s', $bundleName, $className);
8081

8182
if (!isset($this->builders[$name])) {
82-
8383
$bundle = $this->kernel->getBundle($bundleName);
8484
$try = $bundle->getNamespace().'\\Menu\\'.$className;
8585

src/Templating/Helper/MenuHelper.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
class MenuHelper extends TemplatingHelper
1212
{
1313
public function __construct(private Helper $helper, private MatcherInterface $matcher, private MenuManipulator $menuManipulator)
14-
{}
14+
{
15+
}
1516

1617
/**
1718
* Retrieves an item following a path in the tree.
1819
*
19-
* @param \Knp\Menu\ItemInterface|string $menu
20+
* @param ItemInterface|string $menu
2021
*
21-
* @return \Knp\Menu\ItemInterface
22+
* @return ItemInterface
2223
*/
2324
public function get($menu, array $path = [], array $options = [])
2425
{
@@ -28,8 +29,8 @@ public function get($menu, array $path = [], array $options = [])
2829
/**
2930
* Renders a menu with the specified renderer.
3031
*
31-
* @param \Knp\Menu\ItemInterface|string|array $menu
32-
* @param string $renderer
32+
* @param ItemInterface|string|array $menu
33+
* @param string $renderer
3334
*
3435
* @return string
3536
*/

0 commit comments

Comments
 (0)