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

Cannot generate json file from php file #60

Closed
Chintanvpatel opened this issue Jul 25, 2014 · 2 comments
Closed

Cannot generate json file from php file #60

Chintanvpatel opened this issue Jul 25, 2014 · 2 comments

Comments

@Chintanvpatel
Copy link

Hi,
I'm testing this with single file of php. I got error while generating json file.

[InvalidArgumentException] "@0" is not a valid date.

Please see this, http://showterm.io/0381fbd5bcf38e6424c47

Thanks.

@clemens-tolboom
Copy link
Owner

Great to have some feedback :)

UnfortunatelyI cannot reproduce. I ran on two branches

{master %} ~/lib/uml-generator-php
$ bin/uml-generator-php  generate:json tests/mailchimp-api-php/ tests/output/

{feature/relations-in-index %} ~/lib/uml-generator-php
$ bin/uml-generator-php  generate:json tests/mailchimp-api-php/ tests/output/

Both give

tests/output/ not found
Creating output directory
/Users/clemens/lib/uml-generator-php/tests/mailchimp-api-php/src/Mailchimp/Campaigns.php
/Users/clemens/lib/uml-generator-php/tests/mailchimp-api-php/src/Mailchimp/Conversations.php
...
/Users/clemens/lib/uml-generator-php/tests/mailchimp-api-php/src/Mailchimp/Vip.php
/Users/clemens/lib/uml-generator-php/tests/mailchimp-api-php/src/Mailchimp.php

Can you try it on the feature/relations-in-index branch too?
What is your environment? OS, PHP version, uml-generator?

@Chintanvpatel
Copy link
Author

Hi Clemens Tolboom,
Solved. It's because of i didn't set default date timezone in php ini settings. Closing issue. Thanks for reply.

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