Skip to content

Commit

Permalink
Fix param name order for Phar::copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Sep 8, 2021
1 parent b0e16f0 commit 0d0c9ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/phar/phar_object.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function convertToExecutable(?int $format = null, ?int $compression = nul
public function convertToData(?int $format = null, ?int $compression = null, ?string $extension = null) {}

/** @return bool */
public function copy(string $to, string $from) {}
public function copy(string $from, string $to) {}

/** @return int */
public function count(int $mode = COUNT_NORMAL) {}
Expand Down Expand Up @@ -258,7 +258,7 @@ public function convertToData(?int $format = null, ?int $compression = null, ?st
* @return bool
* @implementation-alias Phar::copy
*/
public function copy(string $to, string $from) {}
public function copy(string $from, string $to) {}

/**
* @return int
Expand Down
4 changes: 2 additions & 2 deletions ext/phar/phar_object_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 0973430f90bd972380a9c4434808e9857f703548 */
* Stub hash: 32161bce721911d28984bc8198e615d345cb89d7 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
Expand Down Expand Up @@ -58,8 +58,8 @@ ZEND_END_ARG_INFO()
#define arginfo_class_Phar_convertToData arginfo_class_Phar_convertToExecutable

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_copy, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, from, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_count, 0, 0, 0)
Expand Down

0 comments on commit 0d0c9ac

Please sign in to comment.