File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
final class TargetMethodParameter
11
11
{
12
-
13
12
/**
14
13
* @param T $attribute
15
14
* @param class-string $class
16
15
* The name of the target class.
17
- * @param non-empty-string $name
18
- * The name of the target parameter.
19
16
* @param non-empty-string $method
20
17
* The name of the target method.
18
+ * @param non-empty-string $name
19
+ * The name of the target parameter.
21
20
*/
22
21
public function __construct (
23
22
public object $ attribute ,
24
23
public string $ class ,
25
- public string $ name ,
26
24
public string $ method ,
25
+ public string $ name ,
27
26
) {
28
27
}
29
28
}
Original file line number Diff line number Diff line change @@ -59,17 +59,17 @@ private static function targetsToArray(iterable $targetByClass): array
59
59
foreach ($ targets as $ t ) {
60
60
$ a = [ $ t ->arguments , $ class ];
61
61
62
+ if ($ t instanceof TransientTargetMethodParameter) {
63
+ $ a [] = $ t ->method ;
64
+ }
65
+
62
66
if ($ t instanceof TransientTargetMethod
63
67
|| $ t instanceof TransientTargetProperty
64
68
|| $ t instanceof TransientTargetMethodParameter
65
69
) {
66
70
$ a [] = $ t ->name ;
67
71
}
68
72
69
- if ($ t instanceof TransientTargetMethodParameter) {
70
- $ a [] = $ t ->method ;
71
- }
72
-
73
73
$ by [$ t ->attribute ][] = $ a ;
74
74
}
75
75
}
You can’t perform that action at this time.
0 commit comments