Skip to content

Commit 09dd3e3

Browse files
committed
Narrow some more return types to true
1 parent 0787247 commit 09dd3e3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ext/xmlreader/php_xmlreader.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class XMLReader
149149

150150
public string $xmlLang;
151151

152-
/** @return bool */
153-
public function close() {} // TODO make the return type void
152+
/** @return true */
153+
public function close() {} // TODO make return type void
154154

155155
/** @tentative-return-type */
156156
public function getAttribute(string $name): ?string {}

ext/xmlreader/php_xmlreader_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/xsl/php_xsl.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ public function hasExsltSupport(): bool {}
110110
/** @tentative-return-type */
111111
public function registerPHPFunctions(array|string|null $functions = null): void {}
112112

113-
/** @return bool */
114-
public function setProfiling(?string $filename) {} // TODO make the return type void
113+
/** @return true */
114+
public function setProfiling(?string $filename) {} // TODO make return type void
115115

116116
/** @tentative-return-type */
117117
public function setSecurityPrefs(int $preferences): int {}

ext/xsl/php_xsl_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)