File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ public function getProperties(): array
357
357
}
358
358
359
359
360
- public function getProperty ($ name ): Property
360
+ public function getProperty (string $ name ): Property
361
361
{
362
362
if (!isset ($ this ->properties [$ name ])) {
363
363
throw new Nette \InvalidArgumentException ("Property ' $ name' not found. " );
@@ -401,7 +401,7 @@ public function getMethods(): array
401
401
}
402
402
403
403
404
- public function getMethod ($ name ): Method
404
+ public function getMethod (string $ name ): Method
405
405
{
406
406
if (!isset ($ this ->methods [$ name ])) {
407
407
throw new Nette \InvalidArgumentException ("Method ' $ name' not found. " );
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function getUses(): array
68
68
}
69
69
70
70
71
- public function addUse ($ name ): Parameter
71
+ public function addUse (string $ name ): Parameter
72
72
{
73
73
return $ this ->uses [] = new Parameter ($ name );
74
74
}
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ final class Method
39
39
40
40
41
41
/**
42
+ * @param string|array $method
42
43
* @return static
43
44
*/
44
45
public static function from ($ method ): self
You can’t perform that action at this time.
0 commit comments