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 9fe3d99 commit e8fed5dCopy full SHA for e8fed5d
phpstan.neon
@@ -21,4 +21,6 @@ parameters:
21
ignoreErrors:
22
-
23
message: '#but return statement is missing#'
24
- path: tests/ResourceRepositoryTest.php
+ path: tests/ResourceRepositoryTest.php
25
+ stubFiles:
26
+ - tests/stubs/Injector.phpstub
tests/stubs/Injector.phpstub
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Ray\Di;
6
7
+class Injector
8
+{
9
+ /**
10
+ * @param class-string<T> $interface
11
+ * @param string $name
12
+ *
13
+ * @return T
14
+ * @template T of object
15
+ */
16
+ public function getInstance($interface, $name = Name::ANY)
17
+ {}
18
+}
0 commit comments