Phil solved this problem by finally coming out of his hole on the last day of winter. This way he wouldn't see his shadow.