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

Error in datetimes after updating to 1.3.0 #93

Closed
AgustinNormand opened this issue Nov 4, 2020 · 4 comments
Closed

Error in datetimes after updating to 1.3.0 #93

AgustinNormand opened this issue Nov 4, 2020 · 4 comments

Comments

@AgustinNormand
Copy link

Hi,

I'm learning php so maybe this is something easy to resolve but I dont know how to do it.
I'm getting this error since I updated my app that was working fine with the version 1.2.2 of this library:
TypeError: Return value of XBase\DataConverter\Field\VisualFoxpro\DateTimeConverter::fromBinaryString() must implement interface DateTimeInterface or be null, bool returned

/home/agustin/Test/vendor/hisamu/php-xbase/src/XBase/DataConverter/Field/VisualFoxpro/DateTimeConverter.php:31
/home/agustin/Test/vendor/hisamu/php-xbase/src/XBase/DataConverter/Record/DBaseDataConverter.php:100
/home/agustin/Test/vendor/hisamu/php-xbase/src/XBase/DataConverter/Record/DBaseDataConverter.php:57
/home/agustin/Test/vendor/hisamu/php-xbase/src/XBase/Record/RecordFactory.php:27
/home/agustin/Test/vendor/hisamu/php-xbase/src/XBase/Table.php:328

I would appreciate any help,

Sorry for my English,

Agustín.

@gam6itko
Copy link
Collaborator

gam6itko commented Nov 5, 2020

Hi. Can you provide database file and code to reproduce this bug?

@ebta
Copy link
Contributor

ebta commented Nov 5, 2020

I think it's because the value from dbf sometime result in float, I make pull request here #94

@gam6itko
Copy link
Collaborator

gam6itko commented Nov 5, 2020

@AgustinNormand you need to update to dev-master and make sure it works correct for now.

@AgustinNormand
Copy link
Author

Thank you, now in dev-master works fine. Regards

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