Skip to content

failling CI build #688

@staabm

Description

@staabm

while exploring mutation testing I am stumbling over a failling CI test:

https://github.com/phpstan/phpstan-doctrine/actions/runs/18255085404/job/51975257235?pr=686

There was 1 failure:

1) PHPStan\Platform\QueryResultTypeWalkerFetchTypeMatrixTest::testPgsql with data set "t.col_bool_nullable" (array(array('1', true, null, 0.125, null, '0.1', null, 9, null, '2147483648', null, 'foobar', null, 1, DateTime Object (...))), 'SELECT t.col_bool_nullable FROM %s t', PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), PHPStan\Type\UnionType Object (...), null, null, null, null, null, 'none')
Mismatch between expected result and fetched result

Driver: pgsql
Config: default
Dataset: t.col_bool_nullable
DQL: SELECT t.col_bool_nullable FROM PHPStan\Platform\Entity\PlatformEntity t
SQL: SELECT t0_.col_bool_nullable AS col_bool_nullable_0 FROM test t0_
PHP: 8.1
Real first item: false
Expected first item: NULL

Failed asserting that false is identical to null.

/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:4658
/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:4508
/home/runner/work/phpstan-doctrine/phpstan-doctrine/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php:532

@VincentLanglet is this something you could look into?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions