Fixes syntax issues in PHP parser