Skip to content

feat: PHPStan Level 1 #33

feat: PHPStan Level 1

feat: PHPStan Level 1 #33

Triggered via pull request February 29, 2024 07:31
Status Failure
Total duration 30s
Artifacts

psalm_unit_tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
PHPStan: src/Stream/Stream.php#L164
Method Artemeon\HttpClient\Stream\Stream::detach() should return resource|null but return statement is missing.
PHPStan: tests/Unit/Client/ArtemeonHttpClientTest.php#L88
Cannot call method shouldNotBeCalled() on array.
PHPStan: tests/Unit/Client/ArtemeonHttpClientTest.php#L102
Cannot call method shouldBeCalled() on array.
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L67
Call to an undefined method Artemeon\HttpClient\Http\Response::willReturn().
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L84
Call to an undefined method Artemeon\HttpClient\Http\Response::willThrow().
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L85
Cannot call method shouldBeCalled() on null.
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L85
Result of method Psr\Log\LoggerInterface::error() (void) is used.
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L100
Call to an undefined method Artemeon\HttpClient\Http\Response::willThrow().
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L101
Cannot call method shouldBeCalled() on null.
PHPStan: tests/Unit/Client/HttpClientLogDecoratorTest.php#L101
Result of method Psr\Log\LoggerInterface::error() (void) is used.
PHPUnit
Process completed with exit code 1.