Skip to content

Commit ba8e646

Browse files
committed
wip
1 parent f9964be commit ba8e646

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/discovery/tests/Fixtures/ItemWithClosureSkip.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Tempest\Discovery\Tests\Fixtures;
44

5-
use Tempest\Container\Container;
5+
use Psr\Container\ContainerInterface;
66
use Tempest\Discovery\SkipDiscovery;
77

8-
#[SkipDiscovery(static function (Container $container): bool {
9-
return $container->get(DependencyForItemWithClosureSkip::class)->shouldSkip;
8+
#[SkipDiscovery(static function (ContainerInterface $container): bool {
9+
return $container->get(DependencyForItemWithClosureSkip::class)?->shouldSkip ?? false;
1010
})]
1111
final class ItemWithClosureSkip {}

0 commit comments

Comments
 (0)