Exception::getCode() returns string in PDOException

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306174 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2010-12-10 08:22:33 +00:00
parent e5ae688b2f
commit 6fff44bf99

View file

@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>final</modifier> <modifier>public</modifier> <type>int</type><methodname>Exception::getCode</methodname>
<modifier>final</modifier> <modifier>public</modifier> <type>mixed</type><methodname>Exception::getCode</methodname>
<void />
</methodsynopsis>
<para>
@ -26,7 +26,10 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the Exception code as a <type>integer</type>.
Returns the exception code as <type>integer</type> in
<classname>Exception</classname> but possibly as other type in
<classname>Exception</classname> descendants (for example as
<type>string</type> in <classname>PDOException</classname>).
</para>
</refsect1>