Skip to content

Commit

Permalink
update-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KentarouTakeda committed Feb 16, 2025
1 parent 1969abb commit a62e156
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
"require-dev": {
"darkaonline/l5-swagger": "^8.0",
"friendsofphp/php-cs-fixer": "^3.41",
"larastan/larastan": "^2.7",
"larastan/larastan": "^3.0",
"orchestra/testbench": "^7.39|^8.19|^9.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-mockery": "^2.0",
"phpunit/php-code-coverage": "^9.0|^10.0|^11.0",
"phpunit/phpunit": "^9.0|^10.0|^11.0",
"swagger-api/swagger-ui": "^3.18.3|^4.0|^5.0",
"tartanlegrand/laravel-openapi": "^1.5",
"zircote/swagger-php": "^4.1"
"tartanlegrand/laravel-openapi": "^1.5|2.0",
"zircote/swagger-php": "^4.1|^5.0"
},
"suggest": {
"darkaonline/l5-swagger": "Supported OpenAPI Document Provider.",
Expand Down
1 change: 1 addition & 0 deletions src/Http/Controllers/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function view(Request $request): View
]);
assert($schemaRepository instanceof SchemaRepository);

// @phpstan-ignore argument.type
return view('openapi-validator::documents', [
'json' => $schemaRepository->getJson(),
]);
Expand Down
14 changes: 7 additions & 7 deletions tests/Feature/Config/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getProviderSettingsReturnsProviderSettings(): void
foreach ($providerNames as $providerName) {
$providerSettings = $this->config->getProviderSettings($providerName);

$this->assertIsArray($providerSettings);
$this->assertIsArray($providerSettings); // @phpstan-ignore method.alreadyNarrowedType
}
}

Expand All @@ -77,7 +77,7 @@ public function getCacheDirectoryReturnsCacheDirectory(): void
{
$cacheDirectory = $this->config->getCacheDirectory();

$this->assertIsString($cacheDirectory);
$this->assertIsString($cacheDirectory); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand All @@ -97,7 +97,7 @@ public function getErrorOnNoPathReturnsBool(): void
{
$errorOnNoPath = $this->config->getErrorOnNoPath();

$this->assertIsBool($errorOnNoPath);
$this->assertIsBool($errorOnNoPath); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand All @@ -107,7 +107,7 @@ public function getIncludeReqErrorDetailInResponseReturnsBool(): void
{
$includeReqErrorInResponse = $this->config->getIncludeReqErrorDetailInResponse();

$this->assertIsBool($includeReqErrorInResponse);
$this->assertIsBool($includeReqErrorInResponse); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand All @@ -117,7 +117,7 @@ public function getIncludeResErrorDetailInResponseReturnsBool(): void
{
$includeResErrorInResponse = $this->config->getIncludeResErrorDetailInResponse();

$this->assertIsBool($includeResErrorInResponse);
$this->assertIsBool($includeResErrorInResponse); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand All @@ -127,7 +127,7 @@ public function getIncludeOriginalResInResponseReturnsBool(): void
{
$includeOriginalResInResponse = $this->config->getIncludeOriginalResInResponse();

$this->assertIsBool($includeOriginalResInResponse);
$this->assertIsBool($includeOriginalResInResponse); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand All @@ -137,7 +137,7 @@ public function getIncludeTraceInResponseReturnsBool(): void
{
$includeTraceInResponse = $this->config->getIncludeTraceInResponse();

$this->assertIsBool($includeTraceInResponse);
$this->assertIsBool($includeTraceInResponse); // @phpstan-ignore method.alreadyNarrowedType
}

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/SchemaRepository/L5SwaggerResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function setUp(): void
]);

$l5SwaggerResolver = app()->make(L5SwaggerResolver::class);
assert($l5SwaggerResolver instanceof L5SwaggerResolver);

$this->l5SwaggerResolver = $l5SwaggerResolver;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function setUp(): void
parent::setUp();

$laravelOpenApiResolver = app()->make(LaravelOpenApiResolver::class);
assert($laravelOpenApiResolver instanceof LaravelOpenApiResolver);

$this->laravelOpenApiResolver = $laravelOpenApiResolver;
Route::get('/', LaravelOpenApiResolverTestController::class);
Expand Down
2 changes: 0 additions & 2 deletions tests/Feature/SchemaRepository/SchemaRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ public function anyResolverIsUotUsedWhenCacheIsExists(): void
]));

$config = app()->make(Config::class);
assert($config instanceof Config);

$filesystem = app()->make(Filesystem::class);
assert($filesystem instanceof Filesystem);

$filesystem->put(
$config->getCacheFileName('foo'),
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/TestWithTemporaryFilesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ private function getTemporaryDirectory(): string
private function clearTemporaryDirectory(): void
{
$filesystem = app()->make(Filesystem::class);
assert($filesystem instanceof Filesystem);

foreach ($filesystem->allFiles($this->getTemporaryDirectory()) as $file) {
$filesystem->delete($file->getPathname());
Expand Down

0 comments on commit a62e156

Please sign in to comment.