Skip to content

Commit

Permalink
Fix a few ext/phar return types
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed May 27, 2021
1 parent 2d47447 commit 9bba9f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions ext/phar/phar_object.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function decompress(?string $extension = null) {}
/** @return Phar|null */
public function convertToExecutable(?int $format = null, ?int $compression = null, ?string $extension = null) {}

/** @return Phar|null */
/** @return PharData|null */
public function convertToData(?int $format = null, ?int $compression = null, ?string $extension = null) {}

/** @return bool */
Expand Down Expand Up @@ -229,14 +229,16 @@ public function compressFiles(int $compression) {}
public function decompressFiles() {}

/**
* @return Phar|null
* @return PharData|null
* @implementation-alias Phar::compress
* @no-verify
*/
public function compress(int $compression, ?string $extension = null) {}

/**
* @return Phar|null
* @return PharData|null
* @implementation-alias Phar::decompress
* @no-verify
*/
public function decompress(?string $extension = null) {}

Expand All @@ -247,7 +249,7 @@ public function decompress(?string $extension = null) {}
public function convertToExecutable(?int $format = null, ?int $compression = null, ?string $extension = null) {}

/**
* @return Phar|null
* @return PharData|null
* @implementation-alias Phar::convertToData
*/
public function convertToData(?int $format = null, ?int $compression = null, ?string $extension = null) {}
Expand Down
2 changes: 1 addition & 1 deletion 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: a8562e63010e127aadb97134733ac328ced3c7bf */
* Stub hash: 0973430f90bd972380a9c4434808e9857f703548 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
Expand Down

0 comments on commit 9bba9f6

Please sign in to comment.