Skip to content
Closed

3.1 #46

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
43 changes: 0 additions & 43 deletions .github/workflows/add_composer_stability.php

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: PHPUnit
on: [ push, pull_request ]

jobs:
ci32:
ci31:
runs-on: ubuntu-latest
container: hyperf/hyperf:${{ matrix.hyperf-version }}
strategy:
matrix:
hyperf-version:
- "8.1-alpine-v3.19-swoole"
- "8.2-alpine-v3.22-swoole"
- "8.3-alpine-v3.23-swoole"
- "8.4-alpine-v3.23-swoole"
fail-fast: false
max-parallel: 15

Expand All @@ -29,9 +29,7 @@ jobs:

- name: Install Dependencies
run: |
php .github/workflows/add_composer_stability.php
composer require hyperf/di:3.2.*
composer require tangwei/dto:dev-master -W
composer require hyperf/di:3.1.*
composer update -o
composer info

Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
}
],
"require": {
"php": ">=8.2",
"tangwei/dto": "~3.2.0",
"zircote/swagger-php": "^6.0"
"php": ">=8.1",
"tangwei/dto": "~3.1.0",
"zircote/swagger-php": "^4.8||^5.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"hyperf/laminas-mime": "^3.0",
"mockery/mockery": "^1.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": ">=7.0",
"symfony/var-dumper": "^5.1"
},
Expand All @@ -48,7 +47,7 @@
"config": "Hyperf\\ApiDocs\\ConfigProvider"
},
"branch-alias": {
"dev-master": "3.2.x-dev"
"dev-master": "3.1.x-dev"
}
},
"config": {
Expand Down
11 changes: 0 additions & 11 deletions example/Controller/DemoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ public function api(#[RequestQuery] #[Valid] DemoQuery $request): DataType
return new DataType();
}

/**
* @param DemoQuery[] $request
*/
#[ApiOperation(summary: '查询测试POST Arr')]
#[PostMapping(path: 'apiArr')]
public function apiArr(#[RequestBody] #[Valid] array $request, Address $address): array
{
dump($request);
return $request;
}

#[ApiOperation(summary: '查询测试POST')]
#[PostMapping(path: 'api')]
#[ApiHeader(name: 'test', required: true, type: 'string')]
Expand Down
2 changes: 2 additions & 0 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Hyperf\ApiDocs\Listener\AfterDtoStartListener;
use Hyperf\ApiDocs\Listener\AfterWorkerStartListener;
use Hyperf\ApiDocs\Listener\BootAppRouteListener;
use Hyperf\ApiDocs\Listener\DiMapGenerateListener;

class ConfigProvider
{
Expand All @@ -19,6 +20,7 @@ public function __invoke(): array
AfterDtoStartListener::class,
BootAppRouteListener::class,
AfterWorkerStartListener::class,
DiMapGenerateListener::class,
],
'annotations' => [
'scan' => [
Expand Down
Loading
Loading