create(ParserFactory::PREFER_PHP7); $config = Config::getInstance(); $config->throw_exception = true; $config->use_docblock_types = true; } public function setUp() { FileChecker::clearCache(); } public function testExtendOldStyleConstructor() { $stmts = self::$parser->parse('check(true, true, $context); } }