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

fix .gitattributes for php-file line-ending to LF (for windows compat) #50

Merged
merged 1 commit into from
Mar 15, 2020

Conversation

clxmstaab
Copy link
Contributor

@clxmstaab clxmstaab commented Dec 11, 2019

otherwise phpstan cannot be build on windows when core.autocrlf is enabled.
(because all files get checked out with CRLF then, and the build fast-exists because of CS issues)

image

I wasnt able to build the project on windows when git is configured using core.autocrlf=true

hopefully this will fix it.

@clxmstaab clxmstaab changed the title fix line-ending to LF fix .gitattributes for php-file line-ending to LF (for windows compat) Dec 11, 2019
@staabm staabm mentioned this pull request Jan 2, 2020
@orklah
Copy link
Contributor

orklah commented Jan 2, 2020

Can you try to launch the CI again? I believe test will break because the issue appear with other file extensions

otherwise phpstan cannot be build on windows when core.autocrlf is enabled
@clxmstaab
Copy link
Contributor Author

rebased, lets see.

@orklah
Copy link
Contributor

orklah commented Jan 3, 2020

Uh, weird, the test 6 (PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRuleTest::testRule) still complains about \r\n... I'd have expected this to be resolved by your commit...

@adaamz
Copy link
Contributor

adaamz commented Jan 11, 2020

Would be nice to have .editorconfig file too.

@clxmstaab
Copy link
Contributor Author

Would be nice to have .editorconfig file too.

please open a separate issue to discuss this topic

@ondrejmirtes
Copy link
Member

Thank you. I just arrived to the same conclusion.

@ondrejmirtes ondrejmirtes merged commit 67e8f8e into phpstan:master Mar 15, 2020
@clxmstaab clxmstaab deleted the fix-lf branch March 16, 2020 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants