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

abs(): Argument #1 ($num) must be of type int|float, string given in PHP 8.2 #16

Closed
sonaliwr opened this issue Jan 17, 2025 · 1 comment

Comments

@sonaliwr
Copy link

Recently I have upgraded the version of my web application as below,

PHP : 7.3 -> 8.3
Laravel : 8.1 -> 11

After upgrade I am getting below issue for nesbot/carbon, I have tried upgrading nesbot/carbon to latest version 3.8.4 but still getting the same issue. Could you please suggest here.

issue : abs(): Argument #1 ($num) must be of type int|float, string given in PHP 8.2

@kylekatarnls
Copy link
Contributor

kylekatarnls commented Jan 19, 2025

Hi, Carbon became type-strict at v3 for multiple methods, please search in the stack trace of your error what is calling Carbon, what this call is and what values are passed to it.

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

2 participants