Refs #158 - Fallback to reg exp for typehint with PHP < 5.4.1