Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 16, 2023
1 parent 71827b2 commit b026342
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
postgresql_version: ""
- version: 5.0-php8.1
postgresql_version: ""
- version: 5.0-php8.0
postgresql_version: ""
roadrunner: [2.7.*]
env:
ENV_SERVICE: swoole
Expand Down Expand Up @@ -275,7 +273,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1", "8.2"]
php: ["8.1", "8.2"]
swoole: [v5.0.3]
roadrunner: [2.7.*]
env:
Expand Down Expand Up @@ -396,7 +394,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1"] # 部分扩展还未在 pecl 发布 PHP 8.2 Windows 版扩展,所以无法测试
php: ["8.1"] # 部分扩展还未在 pecl 发布 PHP 8.2 Windows 版扩展,所以无法测试
roadrunner: [2.7.*]
extensions:
[
Expand Down
2 changes: 1 addition & 1 deletion phpstan-components.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
- src/Components/grpc/example/grpc
- src/Components/smarty/src/smarty-plugins
- src/Components/swoole/src/Process/Process.php
- src/Components/pgsql/src/Db/Drivers/SwooleNew
- src/Components/pgsql/src/Db/Drivers/Swoole
- src/Components/phar/src/Ignore

bootstrapFiles:
Expand Down
2 changes: 1 addition & 1 deletion src/Components/fpm/src/Http/Message/FpmResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function sendHeaders(): void
/**
* {@inheritDoc}
*/
public function send(): self
public function send(): static
{
if ($this->responseBodyEmitter)
{
Expand Down
1 change: 1 addition & 0 deletions src/Components/phar/src/PharBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
if (file_exists($configFile))
{
/** @var \Symfony\Component\Console\Helper\QuestionHelper $helper */
$helper = $this->getHelper('question');
$question = new ConfirmationQuestion('The configuration file already exists, whether to overwrite it? (y or n)', false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function initUri(): void
/**
* {@inheritDoc}
*/
public function withParsedBody($data)
public function withParsedBody($data): static
{
$result = parent::withParsedBody($data);
$contentType = $_SERVER['CONTENT_TYPE'] ?? '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function isBodyWritable(): bool
/**
* {@inheritDoc}
*/
public function send(): self
public function send(): static
{
if ($this->isWritable)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/swoole/src/Http/Message/SwooleResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function sendHeaders(): void
/**
* {@inheritDoc}
*/
public function send(): self
public function send(): static
{
if ($this->responseBodyEmitter)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function sendHeaders(): void
/**
* {@inheritDoc}
*/
public function send(): self
public function send(): static
{
if ($this->responseBodyEmitter)
{
Expand Down

0 comments on commit b026342

Please sign in to comment.