Fix PHP static context error