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 e488862 commit 5cc77b0Copy full SHA for 5cc77b0
tests/Rector/MethodCall/ContainerBindConcreteWithClosureOnlyRector/Fixture/fixture.php.inc
@@ -19,6 +19,12 @@ $app->singleton(SomeInterface::class, function () {
19
return new SomeClass();
20
});
21
22
+foreach ([SomeClass::class] as $item) {
23
+ $app->singleton($item, function () use ($item) {
24
+ return new $item();
25
+ });
26
+}
27
+
28
?>
29
-----
30
<?php
@@ -42,4 +48,10 @@ $app->singleton(function (): \RectorLaravel\Tests\Rector\MethodCall\ContainerBin
42
48
43
49
44
50
51
52
53
54
55
56
45
57
0 commit comments