mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
Narrow some more return types to true
This commit is contained in:
parent
0787247b19
commit
09dd3e3daf
@ -149,8 +149,8 @@ class XMLReader
|
||||
|
||||
public string $xmlLang;
|
||||
|
||||
/** @return bool */
|
||||
public function close() {} // TODO make the return type void
|
||||
/** @return true */
|
||||
public function close() {} // TODO make return type void
|
||||
|
||||
/** @tentative-return-type */
|
||||
public function getAttribute(string $name): ?string {}
|
||||
|
2
ext/xmlreader/php_xmlreader_arginfo.h
generated
2
ext/xmlreader/php_xmlreader_arginfo.h
generated
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 0102030bdd0ca8806bbd881ed3f6788d4b18c462 */
|
||||
* Stub hash: 4751b68b857ffbf53cab6d1aa88fe8f6120d4fc6 */
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_close, 0, 0, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -110,8 +110,8 @@ class XSLTProcessor
|
||||
/** @tentative-return-type */
|
||||
public function registerPHPFunctions(array|string|null $functions = null): void {}
|
||||
|
||||
/** @return bool */
|
||||
public function setProfiling(?string $filename) {} // TODO make the return type void
|
||||
/** @return true */
|
||||
public function setProfiling(?string $filename) {} // TODO make return type void
|
||||
|
||||
/** @tentative-return-type */
|
||||
public function setSecurityPrefs(int $preferences): int {}
|
||||
|
2
ext/xsl/php_xsl_arginfo.h
generated
2
ext/xsl/php_xsl_arginfo.h
generated
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: a0615bef7b2211570d9da95a31857832a06360dd */
|
||||
* Stub hash: 7d747e7b5989c18169e67d9a9d70256583fffd8e */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_importStylesheet, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, stylesheet, IS_OBJECT, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user