[doc-en] master: Fix return type
| From: | Jakub Vrana | Date: | Fri, 25 Apr 2025 14:54:26 +0000 |
| Subject: | [doc-en] master: Fix return type | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22645@lists.php.net to get a copy of this message | ||
Author: Jakub Vrana (vrana)
Date: 2025-04-25T16:41:16+02:00
Commit: https://github.com/php/doc-en/commit/6d310c441fd9548050c972e694438b362fa6d1fd
Raw diff: https://github.com/php/doc-en/commit/6d310c441fd9548050c972e694438b362fa6d1fd.diff
Fix return type
https://bugs.php.net/78593
Changed paths:
M reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml
Diff:
diff --git a/reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml
b/reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml
index be41a7b9b05c..ba8c9b4bdcee 100755
--- a/reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml
+++ b/reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml
@@ -10,12 +10,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier>
<type>string</type><methodname>mysql_xdevapi\Session::getDefaultSchema</methodname>
+ <modifier>public</modifier> <type
class="union"><type>mysql_xdevapi\Schema</type><type>null</type></type><methodname>mysql_xdevapi\Session::getDefaultSchema</methodname>
<void />
</methodsynopsis>
<para>
- Retrieve name of the default schema that's typically set in
- the connection URI.
+ Retrieve the default schema that's typically set in the connection URI.
</para>
</refsect1>
@@ -27,8 +26,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Name of the default schema defined by the connection, or &null; if
- one was not set.
+ The default schema defined by the connection, or &null; if one was not set.
</para>
</refsect1>
@@ -43,7 +41,7 @@ $uri =
"mysqlx://testuser:testpasswd@localhost:33160/testx?ssl-mode=disabled";
$session = mysql_xdevapi\getSession($uri);
$schema = $session->getDefaultSchema();
-echo $schema;
+echo $schema->getName();
?>
]]>
</programlisting>