Torah Temimah cites Arachin 18a.
Afterward his daughter died… This is the rule: anyone whose beginning and end are in fitness is fit. It is different there, for Scripture says “or saw… if he does not tell” — the Merciful One made the matter depend on the seeing and the telling.
Fitness is required at the two critical moments — the seeing and the telling — not necessarily throughout the intervening period.
Category C — Contextual / temporal method
Method — The witness must be fit at the two legally decisive moments: when he sees the event and when he gives testimony. A disqualification that arises only between those moments does not necessarily invalidate the testimony.
Textual trigger — “אוֹ רָאָה … אִם לֹא יַגִּיד,” interpreted as making the requirement depend on the seeing and the later telling.