facebook/hhvm — pull request #2830 by adrianlang (2014-06-02 12:43:01+00:00)
Title: Fix reflection of method arguments on built-ins

Many methods of built-in classes have typehints even for scalar arguments
in HHVM. This breaks ReflectionArgument since it can't find a class for
scalar arguments.

This patch changes ReflectionFunctionAbstract to not pass scalar type hints to
ReflectionArguments if scalar type hints are not enabled.

Fixes #1665.