Warning: array_replace_recursive(): in Setup/Declaration/Schema/Diff/Diff.php

Magento2 Teaser

Today I’ve noticed an error during a test deployment that occurred right after setup:upgrade. Unfortunately it didn’t indicate the affected module.

I took a quick look at the recent changes and noticed a syntax error in db_schema_whitelist.json file. In this particular case it was a comma that shouldn’t be there.

Easy fix!

Before:

After:

After removing the comma, the deployment ran through gain.

Leave a Reply

Your email address will not be published. Required fields are marked *