You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked how inherited properties and methods are included using XPath, however I cannot figure out how to update the path to exclude the code variable and the getCode() method. I tried looking into other exceptoin classes, but couldn't find any similar situation.
<xi:includexpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
I'm trying to update the documentation for the
PDOException
class: https://www.php.net/PDOExceptionReason being that:
$code
is duplicated (once inherited asint
, the other time redeclared asint|string
final public [Exception::getCode](https://www.php.net/manual/en/exception.getcode.php)(): int
actually returnsstring
not int.See here for more info: php/php-src#12294
I've looked how inherited properties and methods are included using
XPath
, however I cannot figure out how to update the path to exclude the code variable and the getCode() method. I tried looking into other exceptoin classes, but couldn't find any similar situation.doc-en/reference/pdo/pdoexception.xml
Lines 48 to 51 in 43f61d4
doc-en/reference/pdo/pdoexception.xml
Lines 57 to 59 in 43f61d4
I could also copy the original declarations in the class, but would prefer to avoid it if there is such an option.
The text was updated successfully, but these errors were encountered: