Skip to content

Add a NumberType that maps to the BcMath\Number value object #6473

Add a NumberType that maps to the BcMath\Number value object

Add a NumberType that maps to the BcMath\Number value object #6473

Triggered via pull request January 5, 2025 20:37
Status Failure
Total duration 4m 30s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

20 errors
UndefinedClass: src/Types/NumberType.php#L30
src/Types/NumberType.php:30:33: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: src/Types/NumberType.php#L37
src/Types/NumberType.php:37:82: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: src/Types/NumberType.php#L49
src/Types/NumberType.php:49:24: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
InvalidReturnType: tests/Functional/Platform/AlterDecimalColumnTest.php#L41
tests/Functional/Platform/AlterDecimalColumnTest.php:41:17: InvalidReturnType: The declared return type 'iterable<string, list{int, int}>' for Doctrine\DBAL\Tests\Functional\Platform\AlterDecimalColumnTest::scaleAndPrecisionProvider is incorrect, got 'Generator<non-empty-string, list{10|12|16, 4|6|8, 'decimal'|'number'}, mixed, void>' (see https://psalm.dev/011)
UndefinedClass: tests/Functional/TypeConversionTest.php#L171
tests/Functional/TypeConversionTest.php:171:30: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: tests/Functional/Types/NumberTest.php#L23
tests/Functional/Types/NumberTest.php:23:25: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: tests/Functional/Types/NumberTest.php#L41
tests/Functional/Types/NumberTest.php:41:32: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: tests/Types/NumberTest.php#L39
tests/Types/NumberTest.php:39:32: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
UndefinedClass: tests/Types/NumberTest.php#L40
tests/Types/NumberTest.php:40:29: UndefinedClass: Class, interface or enum named BcMath\Number does not exist (see https://psalm.dev/019)
PossiblyNullReference: tests/Types/NumberTest.php#L40
tests/Types/NumberTest.php:40:40: PossiblyNullReference: Cannot call method compare on possibly null value (see https://psalm.dev/083)
Static Analysis with PHPStan (8.3): src/Types/NumberType.php#L30
Class BcMath\Number not found.
Static Analysis with PHPStan (8.3): src/Types/NumberType.php#L31
Class BcMath\Number not found.
Static Analysis with PHPStan (8.3): src/Types/NumberType.php#L37
Method Doctrine\DBAL\Types\NumberType::convertToPHPValue() has invalid return type BcMath\Number.
Static Analysis with PHPStan (8.3): src/Types/NumberType.php#L49
Instantiated class BcMath\Number not found.
Static Analysis with PHPStan (8.3): tests/Functional/TypeConversionTest.php#L171
Instantiated class BcMath\Number not found.
Static Analysis with PHPStan (8.3): tests/Functional/TypeConversionTest.php#L174
Call to method compare() on an unknown class BcMath\Number.
Static Analysis with PHPStan (8.3): tests/Functional/Types/NumberTest.php#L23
Instantiated class BcMath\Number not found.
Static Analysis with PHPStan (8.3): tests/Types/NumberTest.php#L39
Class BcMath\Number not found.
Static Analysis with PHPStan (8.3): tests/Types/NumberTest.php#L40
Call to method compare() on an unknown class BcMath\Number.