Skip to content

Narrow array types #236

Narrow array types

Narrow array types #236

Triggered via pull request June 11, 2025 13:18
Status Failure
Total duration 33s
Artifacts

code-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
php-stan: tests/Api/PaymentRequestTest.php#L120
Call to method PHPUnit\Framework\Assert::assertIsArray() with array<int, string> will always evaluate to true.
php-stan: tests/Api/InvoiceTextTest.php#L68
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'Altapay\\Response\\Embeds\\Address' and Altapay\Response\Embeds\Address will always evaluate to true.
php-stan: tests/Api/InvoiceTextTest.php#L63
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'DateTime' and DateTime will always evaluate to true.
php-stan: tests/Api/InvoiceTextTest.php#L61
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'DateTime' and DateTime will always evaluate to true.
php-stan: tests/Api/HeaderTest.php#L37
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'Altapay\\Response\\Embeds\\Header' and Altapay\Response\Embeds\Header will always evaluate to true.
php-stan: tests/Api/FundingListTest.php#L89
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'DateTime' and DateTime will always evaluate to true.
php-stan: tests/Api/FundingListTest.php#L86
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'DateTime' and DateTime will always evaluate to true.
php-stan: tests/Api/FundingListTest.php#L80
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'Altapay\\Response\\Embeds\\Funding' and Altapay\Response\Embeds\Funding will always evaluate to true.
php-stan: tests/Api/CaptureReservationTest.php#L57
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'Altapay\\Response\\Embeds\\Transaction' and Altapay\Response\Embeds\Transaction will always evaluate to true.
php-stan: tests/Api/CallbackTest.php#L165
Call to method PHPUnit\Framework\Assert::assertInstanceOf() with 'Altapay\\Response\\CallbackResponse' and Altapay\Response\CallbackResponse will always evaluate to true.