apply hhvm fix

inspired by https://github.com/sensiolabs/SensioDistributionBundle/pull/150 for hhvm compatibility