Skip to content

Commit

Permalink
Add some Psalm suppressions to cater to lower dependency resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jun 24, 2024
1 parent cf8c0eb commit 67e68ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@
<function name="var_dump"/>
<function name="exit"/>
</forbiddenFunctions>
<issueHandlers>
<TooManyTemplateParams>
<errorLevel type="suppress">
<directory name="src/Factory"/>
</errorLevel>
</TooManyTemplateParams>
</issueHandlers>
</psalm>
2 changes: 2 additions & 0 deletions src/Factory/RegisteredWebhooksFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ public function __construct(
) {
}

/** @psalm-suppress MoreSpecificReturnType */
public function createNew(): RegisteredWebhooksInterface
{
/** @psalm-suppress LessSpecificReturnStatement */
return $this->decoratedFactory->createNew();
}

Expand Down
2 changes: 2 additions & 0 deletions src/Factory/UploadOrderRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ public function __construct(
) {
}

/** @psalm-suppress MoreSpecificReturnType */
public function createNew(): UploadOrderRequestInterface
{
/** @psalm-suppress LessSpecificReturnStatement */
return $this->decoratedFactory->createNew();
}
}

0 comments on commit 67e68ba

Please sign in to comment.