File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,13 @@ class ClassType
65
65
66
66
67
67
/**
68
- * @param \ReflectionClass| string
68
+ * @param string|object
69
69
* @return static
70
70
*/
71
- public static function from ($ from )
71
+ public static function from ($ class )
72
72
{
73
73
return (new Factory )->fromClassReflection (
74
- $ from instanceof \ReflectionClass ? $ from : new \ReflectionClass ($ from )
74
+ $ class instanceof \ReflectionClass ? $ class : new \ReflectionClass ($ class )
75
75
);
76
76
}
77
77
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ class Method extends Member
52
52
53
53
54
54
/**
55
- * @param \ReflectionFunctionAbstract| callable
55
+ * @param callable
56
56
* @return static
57
57
*/
58
- public static function from ($ from )
58
+ public static function from ($ method )
59
59
{
60
60
return (new Factory )->fromFunctionReflection (
61
- $ from instanceof \ReflectionFunctionAbstract ? $ from : Nette \Utils \Callback::toReflection ($ from )
61
+ $ method instanceof \ReflectionFunctionAbstract ? $ method : Nette \Utils \Callback::toReflection ($ method )
62
62
);
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments