Skip to content

Commit 43ce996

Browse files
committed
phpDoc: added $var name to @param
1 parent f82c6d8 commit 43ce996

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ final class ClassType
6464

6565

6666
/**
67-
* @param string|object
67+
* @param string|object $class
6868
* @return static
6969
*/
7070
public static function from($class): self
@@ -202,7 +202,7 @@ public function isAbstract(): bool
202202

203203

204204
/**
205-
* @param string|string[]
205+
* @param string|string[] $names
206206
* @return static
207207
*/
208208
public function setExtends($names): self
@@ -238,7 +238,7 @@ public function addExtend(string $name): self
238238

239239

240240
/**
241-
* @param string[]
241+
* @param string[] $names
242242
* @return static
243243
*/
244244
public function setImplements(array $names): self
@@ -270,7 +270,7 @@ public function addImplement(string $name): self
270270

271271

272272
/**
273-
* @param string[]
273+
* @param string[] $names
274274
* @return static
275275
*/
276276
public function setTraits(array $names): self
@@ -302,7 +302,7 @@ public function addTrait(string $name, array $resolutions = []): self
302302

303303

304304
/**
305-
* @param Constant[]|mixed[]
305+
* @param Constant[]|mixed[] $consts
306306
* @return static
307307
*/
308308
public function setConstants(array $consts): self
@@ -332,7 +332,7 @@ public function addConstant(string $name, $value): Constant
332332

333333

334334
/**
335-
* @param Property[]
335+
* @param Property[] $props
336336
* @return static
337337
*/
338338
public function setProperties(array $props): self
@@ -367,7 +367,7 @@ public function getProperty($name): Property
367367

368368

369369
/**
370-
* @param string without $
370+
* @param string $name without $
371371
*/
372372
public function addProperty(string $name, $value = null): Property
373373
{
@@ -376,7 +376,7 @@ public function addProperty(string $name, $value = null): Property
376376

377377

378378
/**
379-
* @param Method[]
379+
* @param Method[] $methods
380380
* @return static
381381
*/
382382
public function setMethods(array $methods): self

src/PhpGenerator/Closure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __toString(): string
5151

5252

5353
/**
54-
* @param Parameter[]
54+
* @param Parameter[] $uses
5555
* @return static
5656
*/
5757
public function setUses(array $uses): self

src/PhpGenerator/Traits/FunctionLike.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function addBody(string $code, array $args = null): self
6969

7070

7171
/**
72-
* @param Parameter[]
72+
* @param Parameter[] $val
7373
* @return static
7474
*/
7575
public function setParameters(array $val): self
@@ -95,7 +95,7 @@ public function getParameters(): array
9595

9696

9797
/**
98-
* @param string without $
98+
* @param string $name without $
9999
*/
100100
public function addParameter(string $name, $defaultValue = null): Parameter
101101
{

src/PhpGenerator/Traits/VisibilityAware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait VisibilityAware
2222

2323

2424
/**
25-
* @param string|null public|protected|private
25+
* @param string|null $val public|protected|private
2626
* @return static
2727
*/
2828
public function setVisibility(?string $val): self

0 commit comments

Comments
 (0)