File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ public function fromCode(string $code): PhpFile
342
342
}
343
343
344
344
345
+ /** @return Attribute[] */
345
346
private function getAttributes ($ from ): array
346
347
{
347
348
return array_map (function ($ attr ) {
@@ -357,7 +358,7 @@ private function getAttributes($from): array
357
358
}
358
359
359
360
360
- private function getVisibility ($ from ): string
361
+ private function getVisibility (\ ReflectionProperty | \ ReflectionMethod | \ ReflectionClassConstant $ from ): string
361
362
{
362
363
return $ from ->isPrivate ()
363
364
? Visibility::Private
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class Literal
17
17
{
18
18
/**
19
19
* Creates a literal representing the creation of an object using the new operator.
20
+ * @param mixed[] $args
20
21
*/
21
22
public static function new (string $ class , array $ args = []): self
22
23
{
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ final class Method
31
31
private bool $ abstract = false ;
32
32
33
33
34
+ /**
35
+ * @param string|array{object|string, string}|\Closure $method
36
+ */
34
37
public static function from (string |array |\Closure $ method ): static
35
38
{
36
39
return (new Factory )->fromMethodReflection (Nette \Utils \Callback::toReflection ($ method ));
Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ public function isAbstract(): bool
79
79
}
80
80
81
81
82
- /** @internal */
82
+ /**
83
+ * @param Parameter[] $val
84
+ * @internal
85
+ */
83
86
public function setParameters (array $ val ): static
84
87
{
85
88
(function (Parameter ...$ val ) {})(...$ val );
@@ -92,7 +95,10 @@ public function setParameters(array $val): static
92
95
}
93
96
94
97
95
- /** @internal */
98
+ /**
99
+ * @return Parameter[]
100
+ * @internal
101
+ */
96
102
public function getParameters (): array
97
103
{
98
104
return $ this ->parameters ;
Original file line number Diff line number Diff line change 21
21
*/
22
22
trait PropertyLike
23
23
{
24
- /** @var array{' set' => ?string, ' get' => ?string} */
24
+ /** @var array{set: ?string, get: ?string} */
25
25
private array $ visibility = [PropertyAccessMode::Set => null , PropertyAccessMode::Get => null ];
26
26
private bool $ final = false ;
27
27
private bool $ readOnly = false ;
You can’t perform that action at this time.
0 commit comments