Skip to content

Commit 0bc691b

Browse files
committed
Issue #6470 Fixes inconsistent use of self vs static in AutowireTrait
1 parent ca904c8 commit 0bc691b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Commands/AutowireTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static function create(ContainerInterface $container)
4040
$args[] = $container->get($service);
4141
}
4242

43-
return new self(...$args);
43+
// @phpstan-ignore-next-line new.static
44+
return new static(...$args);
4445
}
4546
}

0 commit comments

Comments
 (0)