Skip to content

Commit 0d0c9ac

Browse files
committed
Fix param name order for Phar::copy()
1 parent b0e16f0 commit 0d0c9ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/phar/phar_object.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function convertToExecutable(?int $format = null, ?int $compression = nul
4646
public function convertToData(?int $format = null, ?int $compression = null, ?string $extension = null) {}
4747

4848
/** @return bool */
49-
public function copy(string $to, string $from) {}
49+
public function copy(string $from, string $to) {}
5050

5151
/** @return int */
5252
public function count(int $mode = COUNT_NORMAL) {}
@@ -258,7 +258,7 @@ public function convertToData(?int $format = null, ?int $compression = null, ?st
258258
* @return bool
259259
* @implementation-alias Phar::copy
260260
*/
261-
public function copy(string $to, string $from) {}
261+
public function copy(string $from, string $to) {}
262262

263263
/**
264264
* @return int

ext/phar/phar_object_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 0973430f90bd972380a9c4434808e9857f703548 */
2+
* Stub hash: 32161bce721911d28984bc8198e615d345cb89d7 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
@@ -58,8 +58,8 @@ ZEND_END_ARG_INFO()
5858
#define arginfo_class_Phar_convertToData arginfo_class_Phar_convertToExecutable
5959

6060
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_copy, 0, 0, 2)
61-
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
6261
ZEND_ARG_TYPE_INFO(0, from, IS_STRING, 0)
62+
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
6363
ZEND_END_ARG_INFO()
6464

6565
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_count, 0, 0, 0)

0 commit comments

Comments
 (0)