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 @@ -403,7 +403,7 @@ public function getProperties(): array
403
403
}
404
404
405
405
406
- public function getProperty ($ name ): Property
406
+ public function getProperty (string $ name ): Property
407
407
{
408
408
if (!isset ($ this ->properties [$ name ])) {
409
409
throw new Nette \InvalidArgumentException ("Property ' $ name' not found. " );
@@ -447,7 +447,7 @@ public function getMethods(): array
447
447
}
448
448
449
449
450
- public function getMethod ($ name ): Method
450
+ public function getMethod (string $ name ): Method
451
451
{
452
452
if (!isset ($ this ->methods [$ name ])) {
453
453
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