You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was confused when got merge conflicts during rebase, but version control tab was empty, after manual check, figured out that there are vendor files with conflicts!
grep -H -r "<<<<<<< HEAD" /var/www/site/site/
/var/www/site/site/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.2.inc:<<<<<<< HEAD
/var/www/site/oppassiteand/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.2.inc.fixed:<<<<<<< HEAD
/var/www/site/site/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc:<<<<<<< HEAD
In this files I see
<?php
$var = array();
// The following function has a simulated git conflict for testing.
// This is not a merge conflict - it is a valid test case to test handling of arrays without associated closer.
// Please do not remove.
function test()
{
$arr = array(
'a' => 'a',
<<<<<<< HEAD
'b' => 'b'
=======
'c' => 'c'
>>>>>>> master
);
}
This does not allow us to do rebase. Changing it says that it is vendor package, changes will be overwritten. Package must not generate such files. Why it generated them?
The text was updated successfully, but these errors were encountered:
Why are you scanning/committing the content of the vendor directory ?
These are test files to verify that various sniffs work correctly. The planning is for those to no longer be shipped with PHPCS by default as of version 4.0. See Remove tests from the composer package #1908
It is ignored by git. /vendor/
and does not tracked.
I do not scanning anything, just running rebase with local branch and develop.
Manual see conflicts, because VersionControll was empty for PhPStorm 2018
If you can't have PHPCS in your vendor folder because of this, maybe install it globally.
I'm going to close this as the conflicts must stay as they are part of tests, and the test will be removed in version 4 so this is already on the roadmap.
I was confused when got merge conflicts during rebase, but version control tab was empty, after manual check, figured out that there are vendor files with conflicts!
In this files I see
This does not allow us to do rebase. Changing it says that it is vendor package, changes will be overwritten. Package must not generate such files. Why it generated them?
The text was updated successfully, but these errors were encountered: