Fix bug with processing php code after its class was ended.