Updating core from 8.5.4 to 8.5.6
1,
in file composer.json add

"require": {
"drupal/core": "~8.5"
}


Remove line

"replace": {
    "drupal/core": "^8.5"
}


remote folder vendor
remove file composer.log

alter run

composer update --with-dependencies