Getting error by composer update

I’m getting now an error with the codeexeption package by starting composer:

Updating codeception/base 2.5.x-dev (ec6b7bd => 342fd3c):     Update failed (Source directory .../vendor/codeception/base has unpushed changes on the current branch: 
M	composer.json)
    Would you like to try reinstalling the package instead [yes]? 
Would you like to try reinstalling the package instead [yes]? Killed

  - Removing codeception/base (2.5.x-dev)

[RuntimeException]                                                                                                     
  Source directory ..../vendor/codeception/base has unpushed changes on the current branch:   
  M	composer.json    

Broken.

Any ideas? I don’t know where comes the changes and what’s to do.

I changed code in a file of a Kartik extension underneath vendor. Could this caused this problem?

The error messages says that you’ve changed a file within vendor/codeception/base.
You should never directly edit files under vendor, unless you’re debugging something.

You can remove the vendor folder and run composer install again to fix the problem.

Yes, I guessed that. So I changed the folder codeexeption/base to old_base, thats enough.

Now composer shows the changed Kartik file and I know whats to do.