1

When I am running this command in the magento 2.4 : sudo bin/magento s:up && sudo bin/magento s:di:c && sudo bin/magento c:f

I got this error I tied many things but don't work.

Warning: array_replace_recursive(): Expected parameter 2 to be an array, null given in /home/rana/www/magento/vendor/magento/framework/Setup/Declaration/Schema/Diff/Diff.php on line 146

3
  • what's your php version? Commented Mar 7, 2022 at 3:37
  • Finally I got the solution just rename the vendor directory and run sudo composer update. Commented May 4, 2022 at 19:59
  • PHP version is 7.4. Commented May 4, 2022 at 19:59

2 Answers 2

3

You get this error if you have syntax error in your db_schema_whitelist.json file. Just remove it and run:

bin/magento setup:upgrade bin/magento setup:db-declaration:generate-whitelist 
1
  • Okay, I just just rename the vendor directory and run sudo composer update. Thank you so much! Commented Jun 18, 2022 at 13:15
0

I just rename the vendor directory and run sudo composer update its work.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.