Skip to content

Commit 13ef773

Browse files
authored
Upgrade phpstan to 1.x (#44)
1 parent e1fb622 commit 13ef773

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
php-version: ${{ matrix.php-version }}
2828
tools: phpize
29-
ini-values: opcache.enable_cli=1, swoole.use_shortname='Off'
29+
ini-values: opcache.enable_cli=0, swoole.use_shortname='Off'
3030
coverage: none
3131
- name: Setup Swoole
3232
if: ${{ matrix.engine == 'swoole' }}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"hyperf/guzzle": "^2.0.0",
3636
"hyperf/process": "^2.0.0",
3737
"hyperf/testing": "^2.0.0",
38-
"phpstan/phpstan": "^0.12",
38+
"phpstan/phpstan": "^1.0",
3939
"phpunit/phpunit": ">=7.0",
4040
"swoole/ide-helper": "^4.5.2",
4141
"symfony/finder": "^4.0|^5.0"

phpstan.neon

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ parameters:
88
ignoreErrors:
99
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
1010
- '#Static call to instance method Hyperf\\DbConnection\\Db::[a-zA-Z0-9\\_]+\(\)#'
11+
- '#Property Hyperf\\Nano\\ContainerProxy::\$(request|response) is never read, only written.#'

tests/HttpTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace HyperfTest\Nano;
1313

1414
use GuzzleHttp\Client;
15+
use PHPUnit\Framework\TestCase;
1516
use Hyperf\Guzzle\CoroutineHandler;
16-
use PHPStan\Testing\TestCase;
1717

1818
/**
1919
* @internal

0 commit comments

Comments
 (0)