Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade phpstan to 1.x #44

Merged
merged 3 commits into from
Jul 6, 2022
Merged
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
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