In this rule

Historical Rules · 1 October 2009

Rule 506.4d

Official source text from the 1 October 2009 Rules release

A permanent that's both a blocking creature and a planeswalker that's being attacked is partially removed from combat if it stops being either a creature or a planeswalker (but not both). It's not removed from the portion of combat that's relevant to the card type it still is.

Find this number in the current Rules