8000 InvalidArgumentException : Unknown setter 'date' · Issue #96 · spatie/async · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

InvalidArgumentException : Unknown setter 'date' #96

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

Closed
quicklead opened this issue Dec 16, 2019 · 2 comments
Closed

InvalidArgumentException : Unknown setter 'date' #96

quicklead opened this issue Dec 16, 2019 · 2 comments

Comments

@quicklead
Copy link

In laravel i'm has exception:

InvalidArgumentException : Unknown setter 'date'

at /var/www/{PH}/data/www/{PH}/vendor/nesbot/carbon/src/Carbon/Traits/Date.php:1187
1183| break;
1184| }
1185|
1186| if ($this->localStrictModeEnabled ?? static::isStrictModeEnabled()) {

1187| throw new InvalidArgumentException(sprintf("Unknown setter '%s'", $name));
1188| }
1189|
1190| $this->$name = $value;
1191| }

Exception trace:

1 Carbon\Carbon::set("date", "2019-12-16 11:16:44.617064")
/var/www/{PH}/data/www/{PH}/vendor/nesbot/carbon/src/Carbon/Traits/Date.php:1063

2 Carbon\Carbon::__set("date", "2019-12-16 11:16:44.617064")
[internal]:0

Please use the argument -v to see more details.

What is this?

Code in artisan command:

$pool->add(function () use ($task, $step, $sender, $login, $password, $key, $args, $que, $chanel, $_this) {
...
})->then( ... );

Never to use Carbon in my app, but him is give me exception on work.
If i'm disabled or removing Pool from script, him has normal work.

@brendt
Copy link
Contributor
brendt commented Dec 17, 2019

Please read #97

@brendt brendt closed this as completed Dec 17, 2019
@cp-vrkansagara
Copy link
cp-vrkansagara commented Jan 25, 2021

@brendt I can understand that #97 is not resolved yet and @spatie need to contribute few example of booted framework.

I believe that #97 should be re-open for more feedback and solutions.

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

3 participants
0