Skip to content

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

Merged
ondrejmirtes merged 1 commit intophpstan:masterfrom
clxmstaab:fix-lf
Mar 15, 2020
Merged

fix .gitattributes for php-file line-ending to LF (for windows compat)#50
ondrejmirtes merged 1 commit intophpstan:masterfrom
clxmstaab:fix-lf

Conversation

@clxmstaab
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

rebased, lets see.

@orklah
Copy link
Copy Markdown
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
Copy Markdown
Contributor

adaamz commented Jan 11, 2020

Would be nice to have .editorconfig file too.

@clxmstaab
Copy link
Copy Markdown
Contributor Author

Would be nice to have .editorconfig file too.

please open a separate issue to discuss this topic

@ondrejmirtes
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

4 participants