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
6565
6666
6767 /**
68- * @param \ReflectionClass| string
68+ * @param string|object
6969 * @return static
7070 */
71- public static function from ($ from )
71+ public static function from ($ class )
7272 {
7373 return (new Factory )->fromClassReflection (
74- $ from instanceof \ReflectionClass ? $ from : new \ReflectionClass ($ from )
74+ $ class instanceof \ReflectionClass ? $ class : new \ReflectionClass ($ class )
7575 );
7676 }
7777
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ class Method extends Member
5252
5353
5454 /**
55- * @param \ReflectionFunctionAbstract| callable
55+ * @param callable
5656 * @return static
5757 */
58- public static function from ($ from )
58+ public static function from ($ method )
5959 {
6060 return (new Factory )->fromFunctionReflection (
61- $ from instanceof \ReflectionFunctionAbstract ? $ from : Nette \Utils \Callback::toReflection ($ from )
61+ $ method instanceof \ReflectionFunctionAbstract ? $ method : Nette \Utils \Callback::toReflection ($ method )
6262 );
6363 }
6464
You can’t perform that action at this time.
0 commit comments