Skip to content

Add PHPStan

Add PHPStan #88

Triggered via pull request August 29, 2023 10:50
@Art4Art4
synchronize #13
add-phpstan
Status Failure
Total duration 1m 1s
Artifacts

tests.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Tests (PHP 7.2 with lowest lib versions): src/Psr/HttpClient.php#L1
Ignored error pattern #^Parameter \#3 \$data of static method WpOrg\\Requests\\Requests\:\:request\(\) expects array\|null, string given\.$# in path /home/runner/work/WP-Requests-PSR18-Adapter/WP-Requests-PSR18-Adapter/src/Psr/HttpClient.php was not matched in reported errors.
Tests (PHP 7.2 with lowest lib versions): src/Psr/HttpClient.php#L95
Parameter #3 $data of static method Requests::request() expects array|null, string given.
Tests (PHP 7.2 with lowest lib versions): src/Psr/Uri.php#L1
Ignored error pattern #^Property WpOrg\\Requests\\Iri\:\:\$port \(string\) does not accept string\|null\.$# in path /home/runner/work/WP-Requests-PSR18-Adapter/WP-Requests-PSR18-Adapter/src/Psr/Uri.php was not matched in reported errors.
Tests (PHP 7.2 with lowest lib versions): src/Psr/Uri.php#L382
Property Requests_IRI::$port (string) does not accept string|null.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/HttpClient/CreateRequestTest.php#L31
Parameter #2 $uri of method Art4\Requests\Psr\HttpClient::createRequest() expects Psr\Http\Message\UriInterface|string, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/Request/GetBodyTest.php#L23
Parameter #2 $uri of static method Art4\Requests\Psr\Request::withMethodAndUri() expects Psr\Http\Message\UriInterface, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/Request/GetHeaderLineTest.php#L24
Parameter #2 $uri of static method Art4\Requests\Psr\Request::withMethodAndUri() expects Psr\Http\Message\UriInterface, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/Request/GetHeaderLineTest.php#L38
Parameter #2 $uri of static method Art4\Requests\Psr\Request::withMethodAndUri() expects Psr\Http\Message\UriInterface, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/Request/GetHeaderLineTest.php#L53
Parameter #2 $uri of static method Art4\Requests\Psr\Request::withMethodAndUri() expects Psr\Http\Message\UriInterface, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with lowest lib versions): tests/Psr/Request/GetHeaderTest.php#L24
Parameter #2 $uri of static method Art4\Requests\Psr\Request::withMethodAndUri() expects Psr\Http\Message\UriInterface, PHPUnit\Framework\MockObject\MockObject given.
Tests (PHP 7.2 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 8.2 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 7.4 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 7.3 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 8.1 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 7.2 with lowest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 8.0 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (PHP 8.3 with latest lib versions)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/