There is very little risk if the developer uses poly- or monocrystalline silicon solar panels, which do not contain harmful chemicals or gasses. These panels contain mainly silicon, aluminum, and glass. Since they are solid materials (as opposed to liquid), there is no risk of “leakage” of fluids or gasses if the panels crack or break.
All solar facilities are also designed to strict electrical safety standards to ensure safe operation. Product safety standards, installation requirements, and building codes for solar facilities are addressed by the National Fire Protection Agency’s National Electrical Code, the International Code Council’s International Fire Code, the International Association of Firefighters, and several other safety and product standards groups. The local utility will always check that these protocols are being followed.