Set $in_cast to false at the right times
Set $in_cast to false at the right times

For reasons unknown this doesn’t seem to be required, but maybe the
tests just don’t elucidate some bugs.

xwp/WordPress-Coding-Standards,jrfnl/WordPress-Coding-Standards,paulschreiber/WordPress-Coding-Standards,WordPress-Coding-Standards/WordPress-Coding-Standards,mattyrob/WordPress-Coding-Standards,WordPress-Coding-Standards/WordPress-Coding-Standards,mattyrob/WordPress-Coding-Standards,paulschreiber/WordPress-Coding-Standards,borkweb/WordPress-Coding-Standards,xwp/WordPress-Coding-Standards,WordPress-Coding-Standards/WordPress-Coding-Standards,xwp/WordPress-Coding-Standards,paulschreiber/WordPress-Coding-Standards,jrfnl/WordPress-Coding-Standards,borkweb/WordPress-Coding-Standards,jrfnl/WordPress-Coding-Standards,borkweb/WordPress-Coding-Standards,borkweb/WordPress-Coding-Standards,mediarain/WordPress-Coding-Standards,lkraav/WordPress-Coding-Standards,lkraav/WordPress-Coding-Standards,jrfnl/WordPress-Coding-Standards,mattyrob/WordPress-Coding-Standards,mattyrob/WordPress-Coding-Standards,mediarain/WordPress-Coding-Standards,xwp/WordPress-Coding-Standards,mattyrob/WordPress-Coding-Standards,paulschreiber/WordPress-Coding-Standards,WordPress-Coding-Standards/WordPress-Coding-Standards