mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/phar: Adjust return types for methods that always return true
This commit is contained in:
parent
feae0aebde
commit
6836cae812
2 changed files with 12 additions and 7 deletions
|
@ -187,10 +187,10 @@ class Phar extends RecursiveDirectoryIterator implements Countable, ArrayAccess
|
|||
public function offsetUnset($localName): void {}
|
||||
|
||||
/** @tentative-return-type */
|
||||
public function setAlias(string $alias): bool {}
|
||||
public function setAlias(string $alias): true {}
|
||||
|
||||
/** @tentative-return-type */
|
||||
public function setDefaultStub(?string $index = null, ?string $webIndex = null): bool {}
|
||||
public function setDefaultStub(?string $index = null, ?string $webIndex = null): true {}
|
||||
|
||||
/** @tentative-return-type */
|
||||
public function setMetadata(mixed $metadata): void {}
|
||||
|
|
15
ext/phar/phar_object_arginfo.h
generated
15
ext/phar/phar_object_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 4182a1159f6cf8a0d71a7814d0435b5e2be29276 */
|
||||
* Stub hash: 031dc8f07d2d9bac4a5f82f4ac2c5b3da5995405 */
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
||||
|
@ -133,11 +133,11 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_offsetUnset
|
|||
ZEND_ARG_INFO(0, localName)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setAlias, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setAlias, 0, 1, IS_TRUE, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, alias, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setDefaultStub, 0, 0, _IS_BOOL, 0)
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Phar_setDefaultStub, 0, 0, IS_TRUE, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -302,9 +302,14 @@ ZEND_END_ARG_INFO()
|
|||
|
||||
#define arginfo_class_PharData_offsetUnset arginfo_class_Phar_offsetUnset
|
||||
|
||||
#define arginfo_class_PharData_setAlias arginfo_class_Phar_setAlias
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharData_setAlias, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, alias, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_PharData_setDefaultStub arginfo_class_Phar_setDefaultStub
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PharData_setDefaultStub, 0, 0, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_PharData_setMetadata arginfo_class_Phar_setMetadata
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue