Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f33194d

Browse files
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /