Closed brutal-factories closed 9 months ago
I seem to have trouble with both Rector and PhpCS on files I haven't edited here, am I missing something?
seems to be changes in cs fixer and rectorphp. i fixed the errors in #40
thanks a lot for this work! i commented a couple of questions.
great! can you please rebase on the 2.x branch so that cs and rector errors not related to your changes go away? then we see if all is fine with the changes.
and can you please add an entry to the CHANGELOG.md file that explains the new functionality? we use this for the release notes on github, and users can read the changelog to discover new features.
great! can you please rebase on the 2.x branch so that cs and rector errors not related to your changes go away? then we see if all is fine with the changes.
and can you please add an entry to the CHANGELOG.md file that explains the new functionality? we use this for the release notes on github, and users can read the changelog to discover new features.
Changelog is updated
I remember indeed rebasing on the 2.x branch when I picked back up this PR, due to Rector/CSFixer issues, but the issues persisted. I just tried re-pulling the branch just to make sure, but the git history still says my branch is indeed based on the tip of the current 2.x
branch.
One thing to note is, for src/Context.php
which CSFixer picks up, its latest commit does contain the formatting issues CSFixer wants to change, and the github web interface still shows the commit with failed CI as the latest change to the file, even though the branch history says otherwise :thinking: .
edit: could it be that I have a different php-cs-fixer configuration? I don't see where it was configured to place empty braces pairs on the same line in my php-cs-fixer.dist.php
the thing is that we do not lock a specific cs fixer version, and the latest minor version had some new rules. i am updating in #43
:tada: On that note, could you also make a new tag for liip/metadata-parser ? It currently only has a branch, and I was thinking of making a PR to liip/serializer to make it compatible with liip/metadata-parser:^2.0
there are a couple things in metadata-parser that should be done before releasing. i tried to be minimal to only have the things that need BC breaks, but supporting doctrine attributes instead of annotations would be quite useful for the future too: https://github.com/liip/metadata-parser/issues
The deserialization generator does not handle timezones for PropertyDateTime, and will throw an exception if the metadata contains any. In addition, with the https://github.com/liip/metadata-parser/pull/44 PR , I've also implemented the handling of multiple deserialization formats.
Here's a small script I've put together for this feature, from the same PR, just with the timezones added
P.S. : I'll be adding more tests laterMore tests have been added for those cases