clemens-tolboom / uml-generator-php

http://clemens-tolboom.github.io/uml-generator-php/
MIT License
44 stars 5 forks source link

Cannot generate json file from php file #60

Closed Chintanvpatel closed 9 years ago

Chintanvpatel commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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