php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/Zend/tests/variadic/ |
files >> //php-7.1.11/Zend/tests/variadic/removing_parameter_error.phpt |
--TEST-- It's not possible to remove required parameter before a variadic parameter --FILE-- <?php /* Theoretically this should be valid because it weakens the constraint, but * PHP does not allow this (for non-variadics), so I'm not allowing it here, too, * to stay consistent. */ interface DB { public function query($query, ...$params); } class MySQL implements DB { public function query(...$params) { } } ?> --EXPECTF-- Fatal error: Declaration of MySQL::query(...$params) must be compatible with DB::query($query, ...$params) in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`