Skip to content

Commit 41b19cf

Browse files
committed
fix: fix for new version
1 parent bf107fd commit 41b19cf

111 files changed

Lines changed: 340 additions & 848 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/databases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: php leevel migrate:migrate --env=env.phpunit
5858

5959
- name: Migrate common database
60-
run: php leevel migrate:migrate --env=env.phpunit --database=development_common
60+
run: php leevel migrate:migrate --env=env.phpunit --environment=common
6161

6262
- name: Execute tests against PHPUnit
6363
run: php build/phpunit
@@ -117,7 +117,7 @@ jobs:
117117
run: php leevel migrate:migrate --env=env.phpunit
118118

119119
- name: Migrate common database
120-
run: php leevel migrate:migrate --env=env.phpunit --database=development_common
120+
run: php leevel migrate:migrate --env=env.phpunit --environment=common
121121

122122
- name: Execute tests against PHPUnit
123123
run: php build/phpunit
@@ -177,7 +177,7 @@ jobs:
177177
run: php leevel migrate:migrate --env=env.phpunit
178178

179179
- name: Migrate common database
180-
run: php leevel migrate:migrate --env=env.phpunit --database=development_common
180+
run: php leevel migrate:migrate --env=env.phpunit --environment=common
181181

182182
- name: Execute tests against PHPUnit
183183
run: php build/phpunit

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: php leevel migrate:migrate --env=env.phpunit
6767

6868
- name: Migrate common database
69-
run: php leevel migrate:migrate --env=env.phpunit --database=development_common
69+
run: php leevel migrate:migrate --env=env.phpunit --environment=common
7070

7171
- name: Execute tests against PHPUnit
7272
run: php build/phpunit --coverage-clover=coverage.xml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ logs/
1919
.rr.yaml
2020
storage/phpstan
2121
workflow.svg
22+
.phpunit.cache

app/Attachment/Exceptions/UploadBusinessException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@
99
/**
1010
* 上传业务操作异常.
1111
*/
12-
class UploadBusinessException extends BusinessException
13-
{
14-
}
12+
class UploadBusinessException extends BusinessException {}

app/Auth/Exceptions/AuthBusinessException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@
99
/**
1010
* 认证业务操作异常.
1111
*/
12-
class AuthBusinessException extends BusinessException
13-
{
14-
}
12+
class AuthBusinessException extends BusinessException {}

app/Auth/Service/Code.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
*/
1313
class Code
1414
{
15-
public function __construct(private Codes $code)
16-
{
17-
}
15+
public function __construct(private Codes $code) {}
1816

1917
/**
2018
* @throws \Exception

app/Base/Repository/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class App extends Repository
1717
/**
1818
* 根据应用 KEY 查找应用秘钥.
1919
*
20-
* @throws \App\Infra\Exceptions\BusinessException
20+
* @throws BusinessException
2121
*/
2222
public function findAppSecretByKey(string $appKey): string
2323
{

app/Company/Repository/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class App extends Repository
1717
/**
1818
* 根据应用 KEY 查找应用秘钥.
1919
*
20-
* @throws \App\Infra\Exceptions\BusinessException|\Exception
20+
* @throws BusinessException|\Exception
2121
*/
2222
public function findAppSecretByKey(string $appKey): string
2323
{

app/Controller/Api/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Api
1717
)]
1818
public function demo1(string $name): string
1919
{
20-
return sprintf('Hi you, you name is %s in version 1', $name);
20+
return \sprintf('Hi you, you name is %s in version 1', $name);
2121
}
2222

2323
#[Route(
@@ -26,6 +26,6 @@ public function demo1(string $name): string
2626
)]
2727
public function demo2(string $name): string
2828
{
29-
return sprintf('Hi you,your name is %s in version 2', $name);
29+
return \sprintf('Hi you,your name is %s in version 2', $name);
3030
}
3131
}

app/Controller/Api/Web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Web
1616
)]
1717
public function demo1(string $name): string
1818
{
19-
return sprintf('web demo, your name is %s', $name);
19+
return \sprintf('web demo, your name is %s', $name);
2020
}
2121

2222
#[Route(

0 commit comments

Comments
 (0)