wp-cli / search-replace-command

Searches/replaces strings in the database.
MIT License
57 stars 45 forks source link

Add further suppression of warnings and notices #172

Closed schlessera closed 1 year ago

schlessera commented 1 year ago

Under some circumstances, the error suppression operator (@) is not enough to keep the unserialize from throwing warnings or notices. These then end up in the exported SQL file and corrupt the replacements.

This PR changes the error reporting levels globally for the unserialize call to get rid of these unwanted notices and warnings.

danielbachhuber commented 1 year ago

@schlessera Is this meant to fix #122?