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

In Translator.php line 325: strtolower() expects parameter 1 to be string, array given #2157

Closed
asis-parajuli opened this issue Aug 11, 2020 · 3 comments
Assignees

Comments

@asis-parajuli
Copy link

asis-parajuli commented Aug 11, 2020

When i try to install i receives this sort of issue.

Hello,

I encountered an issue with the following code:

echo Carbon::parse('2018-06-01')->subDay()->month;

Carbon version: "nesbot/carbon": "^2.0",

PHP version: 7.4.8

I expected to get:

6

But I actually get:

5

Thanks!

@kylekatarnls
Copy link
Collaborator

kylekatarnls commented Aug 11, 2020

Hello,

I cannot reproduce the issue (if you mean getting the title of this issue as an error) on https://try-carbon.herokuapp.com/ with the details you gave.

Please fulfill the issue template with exact Carbon version, actual/expected output, complete stack trace and a minimum way to reproduce the issue.

Thanks.

@kylekatarnls kylekatarnls added the details needed We do not have enough input to solve this issue label Aug 11, 2020
@kylekatarnls
Copy link
Collaborator

This call is inside Carbon::setLocale() so you (or a third-party of your application) probably called this method with an array while it expects a string.

@kylekatarnls kylekatarnls removed the details needed We do not have enough input to solve this issue label Aug 11, 2020
@asis-parajuli
Copy link
Author

Thanks for your support you save my day.

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