-
-
Notifications
You must be signed in to change notification settings - Fork 71
Added more type hinting & Fixed bug when parsing renamed files with spaces and/or non english-symbols #194
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
…s around the filenames (file names with non-english symbols for example)
- introduced data property to Tag - added .idea to .gitignore
continuous-integration/styleci/pr" - fixed composer.json
I'd also like to request a new tag with this version since one of our projects depends on the fix for filenames with non-standart characters. |
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.
Super cool 👏🏼
- with umlauts added a test - made changes @lyrixx suggested
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.
One minor comment and we are good :)
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.
👍🏼 Thanks you very much for the work
I'm glad I could contribute :) |
I added more type hints to the docBlocks to profit from the auto completion of the IDE (like phpStorm). (commit 1) (commit 2) (commit 3)
I also added some missing use statements here and there
Also there was a bug where you couldn't list the files of a diff when the filename was surrounded by quotation marks. This usually happened when the file name had spaces and/or a non english symbol like ä, ö, ü. (commit)
This is the exception one would get:
for this code
Setting up the
length
inParserBase.php
from 30 to 500 (commit) helped getting me a more verbose exception:Furthermore there was an exception in
Git/Hooks.php
which didn't utilize the$path
before. (commit)In
Tree.php
there was an$entry
variable which was out of place so I replaced it with$element
(commit)In
Diff.php
there was agetRevisions()
method which would return$this->revision
- but the Diff class has no revision attribute so it would always return undefined/null - so I removed the method (commit)At first I tried to get revision into the Diff, but I gave up since I wasn't sure how and if it makes sense.
There is a unsused
fullname
variable ingetComit()
in theTag.php
which I removed (commit)All unit tests were passed on my machine. I tried to fit the existing code guidelines.