-
Notifications
You must be signed in to change notification settings - Fork 22
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
[RFC] Added typing support #36
Conversation
Will leave maintainer to review, but quick drive-by comment: In order to get those Postgres builds to pass, you'll need to run them against version 9.4 or above for
to |
Thanks @chris48s, I added it to the travis yaml. If José wants, we can remove that change and I can add a skip to the test case if it's in the postgresql build. |
* @param string $direction Direction (toPHP or toDatabase) | ||
* @return array | ||
*/ | ||
protected function _convertFieldsToType(array $fields, $direction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is implicitly tested in the new tests, except for the invalid argument exception which I can add a test for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want an explicit test.
ping |
Thanks a bunch! |
Adds type support to versions. You can now save versions that have fields with non scalar types, and all version entities now respect the field's type.