Narrow some more return types to true

This commit is contained in:
kocsismate 2023-05-10 19:08:05 +02:00
parent 0787247b19
commit 09dd3e3daf
No known key found for this signature in database
GPG Key ID: FD055E41728BF310
4 changed files with 6 additions and 6 deletions

View File

@ -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 {}

View File

@ -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()

View File

@ -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 {}

View File

@ -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)