For errors similar to: (this example uses php)
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Abort trap: 6
then run
brew uninstall --ignore-dependencies php
brew install php
The issue should now be resolved; however, you may need also run brew link php
.