remove unused PhpLegacyCompatibility