Fixed php parser so that it would work using ->text rather than the direct variable