Skip to content

Commit

Permalink
Upgrade phpstan to 1.x (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia authored Jul 6, 2022
1 parent e1fb622 commit 13ef773
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
tools: phpize
ini-values: opcache.enable_cli=1, swoole.use_shortname='Off'
ini-values: opcache.enable_cli=0, swoole.use_shortname='Off'
coverage: none
- name: Setup Swoole
if: ${{ matrix.engine == 'swoole' }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"hyperf/guzzle": "^2.0.0",
"hyperf/process": "^2.0.0",
"hyperf/testing": "^2.0.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": ">=7.0",
"swoole/ide-helper": "^4.5.2",
"symfony/finder": "^4.0|^5.0"
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ parameters:
ignoreErrors:
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
- '#Static call to instance method Hyperf\\DbConnection\\Db::[a-zA-Z0-9\\_]+\(\)#'
- '#Property Hyperf\\Nano\\ContainerProxy::\$(request|response) is never read, only written.#'
2 changes: 1 addition & 1 deletion tests/HttpTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
namespace HyperfTest\Nano;

use GuzzleHttp\Client;
use PHPUnit\Framework\TestCase;
use Hyperf\Guzzle\CoroutineHandler;
use PHPStan\Testing\TestCase;

/**
* @internal
Expand Down

0 comments on commit 13ef773

Please sign in to comment.