Boron substitution in ternary metal phosphide superconductors