Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: Implicit conversion from float to int loses precision #233

Open
yalagin opened this issue May 3, 2024 · 0 comments
Open

Deprecated: Implicit conversion from float to int loses precision #233

yalagin opened this issue May 3, 2024 · 0 comments

Comments

@yalagin
Copy link

yalagin commented May 3, 2024

Hi I got a lot of deprecations (hundreds per request) in my log file. Something like that
`
"exception" => ErrorException {#2559 ▼
#message: "Deprecated: Implicit conversion from float 15.2 to int loses precision"
#code: 0
#file: "/var/www/symfony/vendor/meyfa/php-svg/src/Rasterization/Renderers/EllipseRenderer.php"
#line: 60
#severity: E_DEPRECATED
trace: {▶}
}
› [if ($height % 2 === 0) {]
› $height += 1;
}

"exception" => ErrorException {#2555 ▼
#message: "Deprecated: Implicit conversion from float 15.2 to int loses precision"
#code: 0
#file: "/var/www/symfony/vendor/meyfa/php-svg/src/Rasterization/Renderers/EllipseRenderer.php"
#line: 45
#severity: E_DEPRECATED
trace: {▶}
}

"exception" => ErrorException {#2506 ▼
#message: "Deprecated: Implicit conversion from float 93.0909090909091 to int loses precision"
#code: 0
#file: "/var/www/symfony/vendor/meyfa/php-svg/src/Rasterization/Renderers/LineRenderer.php"
#line: 54
#severity: E_DEPRECATED
`
and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant