The berries of many mahonia species are edible and pet-friendly, although they're often better cooked as they have an acidic taste when consumed raw. It's best to avoid eating other parts of the plant. It contains berberine which can be problematic when consumed in large quantities.