{"action":"opened","issue":{"url":"https://api.github.com/repos/spatie/async/issues/45","repository_url":"https://api.github.com/repos/spatie/async","labels_url":"https://api.github.com/repos/spatie/async/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/spatie/async/issues/45/comments","events_url":"https://api.github.com/repos/spatie/async/issues/45/events","html_url":"https://github.com/spatie/async/issues/45","id":368221208,"node_id":"MDU6SXNzdWUzNjgyMjEyMDg=","number":45,"title":" InvalidArgumentException : Unknown setter 'date'","user":{"login":"platformsfx","id":43641741,"node_id":"MDQ6VXNlcjQzNjQxNzQx","avatar_url":"https://avatars3.githubusercontent.com/u/43641741?v=4","gravatar_id":"","url":"https://api.github.com/users/platformsfx","html_url":"https://github.com/platformsfx","followers_url":"https://api.github.com/users/platformsfx/followers","following_url":"https://api.github.com/users/platformsfx/following{/other_user}","gists_url":"https://api.github.com/users/platformsfx/gists{/gist_id}","starred_url":"https://api.github.com/users/platformsfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platformsfx/subscriptions","organizations_url":"https://api.github.com/users/platformsfx/orgs","repos_url":"https://api.github.com/users/platformsfx/repos","events_url":"https://api.github.com/users/platformsfx/events{/privacy}","received_events_url":"https://api.github.com/users/platformsfx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T13:51:34Z","updated_at":"2018-10-09T13:51:34Z","closed_at":null,"author_association":"NONE","body":"Same here:\r\n\r\n```\r\n InvalidArgumentException : Unknown setter 'date'\r\n at /Users/{PH}/Sites/{PH}/{PH}/vendor/nesbot/carbon/src/Carbon/Carbon.php:1202\r\n 1198| $this->setTimezone($value);\r\n 1199| break;\r\n 1200|\r\n 1201| default:\r\n 1202| throw new InvalidArgumentException(sprintf(\"Unknown setter '%s'\", $name));\r\n 1203| }\r\n 1204| }\r\n 1205|\r\n 1206| /**\r\n```\r\n\r\nException trace:\r\n\r\n1 Carbon\\Carbon::__set(\"date\", \"2018-10-09 13:30:51.266615\")\r\n[internal]:0\r\n\r\n2 ReflectionProperty::setValue(Object(Illuminate\\Support\\Carbon), \"2018-10-09 13:30:51.266615\")\r\n/Users/{PH}/Sites/{PH}/{PH}/vendor/opis/closure/src/SerializableClosure.php:397\r\n\r\n\r\ncode:\r\n```\r\n    $sPool = SPool::create()->concurrency(20);\r\n    $sPool[] = async(function () use ($msg){\r\n                             // Some process here\r\n                       })->then(function ($output) {\r\n                            // Handle success\r\n                            \\Log::info(\"OUT: \" . $output);\r\n                      })->catch(function (\\Exception $exception) {\r\n                         // Handle exception\r\n                        \\Log::info($exception->getMessage());\r\n                    });\r\n    await($sPool);\r\n```\r\n\r\n\r\nAND WHILE I used try catch for the SerializableClosure.php:397 I Got this:\r\n\r\n[2018-10-09 13:18:29] local.INFO: Unknown setter 'date'\r\n[2018-10-09 13:18:29] local.INFO: Unknown setter 'timezone_type'\r\n[2018-10-09 13:18:29] local.INFO: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor"}}
{"actor":{"display_login":"platformsfx"}}