Skip to content

Commit 57dc3de

Browse files
committed
fix tests too
1 parent e5689a0 commit 57dc3de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Provider/BuilderAliasProviderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testGetExistentMenu(): void
4444

4545
public function testGetContainerAwareMenu(): void
4646
{
47-
if (!interface_exists(ContainerAwareInterface::class)) {
47+
if (!\interface_exists(ContainerAwareInterface::class)) {
4848
self::markTestSkipped('missing interface');
4949
}
5050
$item = $this->getMockBuilder('Knp\Menu\ItemInterface')->getMock();

tests/Stubs/Menu/ContainerAwareBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ContainerAwareBuilder implements ContainerAwareInterface
1111
{
1212
private ContainerInterface $container;
1313

14-
public function setContainer(ContainerInterface $container = null): void
14+
public function setContainer(?ContainerInterface $container = null): void
1515
{
1616
$this->container = $container;
1717
}

0 commit comments

Comments
 (0)