Webrunner's got it: phasing let's you go through solid objects during your movement, but if you end the action inside one, you get shunted out. In order to attack while inside a wall, a phasing creature would need an attack like Deft Strike, that let it move and attack all as a single action...