1--TEST-- 2Phar: bug #74386: Phar::__construct(): wrong number of parameters by reflection 3--EXTENSIONS-- 4phar 5--FILE-- 6<?php 7$r = new ReflectionMethod(Phar::class, '__construct'); 8var_dump($r->getNumberOfRequiredParameters()); 9var_dump($r->getNumberOfParameters()); 10 11$r = new ReflectionMethod(PharData::class, '__construct'); 12var_dump($r->getNumberOfRequiredParameters()); 13var_dump($r->getNumberOfParameters()); 14?> 15--EXPECT-- 16int(1) 17int(3) 18int(1) 19int(4) 20