Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Psalm error #508

Merged
merged 4 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/'
Loading