Skip to content

Commit f33194d

Browse files
committed
Fix latest PHPStan version errors
1 parent 68a72e7 commit f33194d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Code/ParameterGenerator.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,10 @@ public function setTypeDocBlockHint(?string $typeDocBlockHint): self
190190

191191
public function generate(): Node\Param
192192
{
193-
// @phpstan-ignore-next-line
194193
return new Node\Param(
195194
new Node\Expr\Variable($this->name),
196195
$this->defaultValue ? $this->defaultValue->generate() : null,
197-
$this->type ? $this->type->generate() : null,
196+
$this->type ? $this->type->generate() : null, // @phpstan-ignore-line
198197
$this->passedByReference,
199198
$this->variadic
200199
);

src/Code/PropertyGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ public function setTypeDocBlockHint(?string $typeDocBlockHint): self
157157

158158
public function generate(): Property
159159
{
160-
// @phpstan-ignore-next-line
161160
return new Property(
162161
$this->flags,
163162
[
@@ -167,6 +166,7 @@ public function generate(): Property
167166
),
168167
],
169168
$this->generateAttributes(),
169+
// @phpstan-ignore-next-line
170170
$this->typed && null !== $this->type ? $this->type->generate() : null
171171
);
172172
}

0 commit comments

Comments
 (0)