Skip to content

大佬, php8出现数据转换的精度问题了, 能修复一下吗? #22

@zjkal

Description

@zjkal

大佬, php8出现数据转换的精度问题了, 能修复一下吗?
Implicit conversion from float 28.083582089552237 to int loses precision
#0 [internal function]: think\initializer\Error->appError(8192, 'Implicit conver...', '...', 359)
#1 \vendor\topthink\think-image\src\Image.php(359): imagecopyresampled(Object(GdImage), Object(GdImage), 0.0, 28.083582089552, 0, 0, 128.0, 71.832835820896, 670, 376)
#2 \app\service\FileUpload.php(91): think\Image->thumb(128, 128, 2)

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