We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd6fe8 commit e975fa8Copy full SHA for e975fa8
src/Illuminate/Container/Attributes/Lazy.php
@@ -6,13 +6,12 @@
6
use Illuminate\Contracts\Container\Container;
7
use Illuminate\Contracts\Container\ContextualAttribute;
8
use ReflectionNamedType;
9
-use ReflectionParameter;
10
11
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER)]
+#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER)]
12
class Lazy implements ContextualAttribute
13
{
14
public static function resolve(self $attribute, Container $container, ReflectionNamedType $type)
15
16
- return proxy($type->getName(), fn () => $container->make($type->getName()));
+ return proxy($type->getName(), static fn () => $container->make($type->getName()));
17
}
18
0 commit comments