10000 PHP 8.1, SQLite: Decimal fields are hydrated as float instead of string · Issue #8963 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PHP 8.1, SQLite: Decimal fields are hydrated as float instead of string #8963
Closed
@derrabus

Description

@derrabus

Bug Report

Q A
BC Break no
Version 2.9.x

Summary

Currently, Doctrine hydrates fields with the decimal type to a string. After upgrading to PHP 8.1, I receive a float instead. This change of behavior might break applications, for instance if a string return type declaration is used for a getter method of that field.

How to reproduce

Execute the test case Doctrine\Tests\ORM\Functional\TypeTest::testDecimal on PHP 8.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0