Skip to content

Commit

Permalink
Merge pull request #30 from KentarouTakeda/follow-symfony-style-format
Browse files Browse the repository at this point in the history
Follow symfony style format
  • Loading branch information
KentarouTakeda authored Feb 2, 2024
2 parents 54bbce5 + d33d316 commit 08e75f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
composer update --prefer-${{ matrix.stability }} --no-interaction --no-progress --ansi
- name: Run Code Format Check
if: ${{ matrix.stability == 'stable' }}
run: vendor/bin/php-cs-fixer check

- name: Run Static Analysis
Expand Down
2 changes: 1 addition & 1 deletion src/ErrorRendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ interface ErrorRendererInterface
public function render(
\Throwable $error,
Request $request,
Response $response = null,
?Response $response = null,
): Response;
}
2 changes: 1 addition & 1 deletion src/Http/Middleware/OpenApiValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
* @param bool $skipResponseValidation if true, response validation will be skipped
*/
public static function config(
string $provider = null,
?string $provider = null,
bool $skipResponseValidation = false
): string {
return static::class.':'.implode(',', [
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/Rfc7807Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
public function render(
\Throwable $error,
Request $request,
Response $response = null,
?Response $response = null,
): Response {
$error = $this->prepareException($error);

Expand Down

0 comments on commit 08e75f5

Please sign in to comment.