On OSX using $@ results in an "unbound variable" error when a script is called without parameters.
To negate this effect, ${@:-} should be used. (No, that is not a fancy smiley... :- checks whether the variable is unset or empty. If you want to check only whether it's unset, use - i.e. ${@-}).
After it has been verified this does not cause unwanted side-effects in newer bash versions, all offending scripts need to be updated and a linter needs to be added.