Skip to content

Commit

Permalink
Merge pull request #508 from loic425/fix/ci
Browse files Browse the repository at this point in the history
Fix Psalm error
  • Loading branch information
loic425 committed Oct 18, 2023
2 parents 1a3be14 + 1dbf66f commit c7126dc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class JsonApiTestCase extends BaseJsonApiTestCase
{
/** @psalm-suppress InternalMethod */
public function __construct(?string $name = null, array $data = [], string $dataName = '')
{
parent::__construct($name, $data, $dataName);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"@context": "/api/contexts/Error",
"@id": "/api/errors/400",
"@type": "hydra:Error",
"title": "An error occurred",
"detail": "Token expired.",
"status": 400,
"type": "/errors/400",
"trace": @array@,
"hydra:title": "An error occurred",
"hydra:description": "Token expired.",
"trace": @array@
"hydra:description": "Token expired."
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"@context": "/api/contexts/Error",
"@id": "/api/errors/404",
"@type": "hydra:Error",
"title": "An error occurred",
"detail": "Token not found.",
"status": 404,
"type": "/errors/404",
"trace": @array@,
"hydra:title": "An error occurred",
"hydra:description": "Token not found.",
"trace": @array@
"hydra:description": "Token not found."
}
3 changes: 3 additions & 0 deletions src/Monofony/Pack/ApiPack/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ parameters:
excludePaths:
- 'vendor/**.php'
- '**/spec/**.php'

ignoreErrors:
- '/Method PHPUnit\\Framework\\TestCase::__construct\(\) invoked with 3 parameters, 1 required/'

0 comments on commit c7126dc

Please sign in to comment.