magento-docker
                                
                                
                                
                                    magento-docker copied to clipboard
                            
                            
                            
                        Deprecated Functionality: implode(): Passing glue string after array is deprecated.
Describe the bug I get the following error message while trying to force deploy the static content:
Deprecated Functionality: implode(): Passing glue string after ar
ray is deprecated. Swap the parameters in /var/www/public/vendor/
scandipwa/locale/src/Package/PackagePool.php on line 161
To Reproduce Steps to reproduce the behavior:
- Clean install of scandipwa-2.4.0
 - Followed the install tutorial on linux
 - " inapp bash" to get in the magento container.
 - run the command: magento setup:static-content:deploy -f
 - After this the error happened
 
Expected behavior Deploy of the static content.
FIX
Changing line 161 in the PackagePool.php file to:
if (!preg_match('/(' . implode('|', $quotedKeysToFind) . ')/i', $key)) {
fixes the problem.