Several species of plant produce sap that can irritate skin and eyes, and members of the fig family fall into this group.
The combination of fig sap and sun on skin can cause irritation and burning, so always wear gloves and long-sleeved shirts when pruning.