Skip to content

Commit e975fa8

Browse files
committed
proper target
1 parent cbd6fe8 commit e975fa8

File tree

1 file changed

+2
-3
lines changed
  • src/Illuminate/Container/Attributes

1 file changed

+2
-3
lines changed

src/Illuminate/Container/Attributes/Lazy.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
use Illuminate\Contracts\Container\Container;
77
use Illuminate\Contracts\Container\ContextualAttribute;
88
use ReflectionNamedType;
9-
use ReflectionParameter;
109

11-
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER)]
10+
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER)]
1211
class Lazy implements ContextualAttribute
1312
{
1413
public static function resolve(self $attribute, Container $container, ReflectionNamedType $type)
1514
{
16-
return proxy($type->getName(), fn () => $container->make($type->getName()));
15+
return proxy($type->getName(), static fn () => $container->make($type->getName()));
1716
}
1817
}

0 commit comments

Comments
 (0)