Skip to content

Commit

Permalink
fixes by psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvsk committed Feb 24, 2023
1 parent 41c66a7 commit f239f62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Generator/Builder/Class/CreateMethodBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function (Parameter $p) {
->addBody('}');
}

$creator->addBody('/** @psalm-suppress PossiblyNullArgument */');

if ($this->withCreatorVariadic) {
$newStatement = 'new static(...$constructorParams);';
} else {
Expand Down

0 comments on commit f239f62

Please sign in to comment.