com doc/ja: Clarify that Exception::getPrevious may return a Throwable: language/predefined/exception/getprevious.xml
[email protected] (Yoshinari Takaoka) Wed, 24 Mar 2021 18:32:26 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
Commit: 89fb583af538e3abf437a17d35de1bb33ebc2a7c=0AAuthor: Yoshinari = Takaoka <[email protected]> Thu, 25 Mar 2021 03:32:26 +0900=0AParen= ts: 3b2000e744eb9db8b6a381a4fc976b67edfe8103=0ABranches: master=0A=0ALin= k: http://git.php.net/?p=3Ddoc/ja.git;a=3Dcommitdiff;h=3D89fb583af538= e3abf437a17d35de1bb33ebc2a7c=0A=0ALog:=0AClarify that Exception::getPreviou= s may return a Throwable=0A=0ASpotted this when using PhpStorm's documentat= ion which incorrectly typehints an Exception - use of this as Exception cou= ld cause a TypeError if a non-Exception Throwable is returned.=0A=0ACo-auth= ored-by: Christoph M. Becker <[email protected]>=0A=0ACloses GH-463.=0A=0AC= hanged paths:=0A M language/predefined/exception/getprevious.xml=0A=0A=0A= Diff:=0Adiff --git a/language/predefined/exception/getprevious.xml b/langua= ge/predefined/exception/getprevious.xml=0Aindex b387762a79..66f9e12e75 1006= 44=0A--- a/language/predefined/exception/getprevious.xml=0A+++ b/language/p= redefined/exception/getprevious.xml=0A@@ -1,12 +1,12 @@=0A <?xml version=3D= "1.0" encoding=3D"utf-8"?>=0A <!-- $Revision$ -->=0A-<!-- EN-Revision: 6a89= 105fdc8fc94d843567c3738925289ef3a499 Maintainer: takagi Status: ready -->= =0A+<!-- EN-Revision: 175b731219b1175cb4368ad182713fe31a610668 Maintainer: = takagi Status: ready -->=0A <!-- Credits: mumumu -->=0A =0A <refentry xml:i= d=3D"exception.getprevious" xmlns=3D"http://docbook.org/ns/docbook" xmlns:x= link=3D"http://www.w3.org/1999/xlink">=0A <refnamediv>=0A <refname>Excep= tion::getPrevious</refname>=0A- <refpurpose>=E5=89=8D=E3=81=AE=E4=BE=8B= =E5=A4=96=E3=82=92=E8=BF=94=E3=81=99</refpurpose>=0A+ <refpurpose>= =E5=89=8D=E3=81=AE=E4=BE=8B=E5=A4=96(Throwable)=E3=82=92=E8=BF=94=E3=81= =99</refpurpose>=0A </refnamediv>=0A =0A <refsect1 role=3D"description">= =0A@@ -16,7 +16,7 @@=0A <void />=0A </methodsynopsis>=0A <para>=0A- = =E5=89=8D=E3=81=AB=E7=99=BA=E7=94=9F=E3=81=97=E3=81=9F=E4=BE=8B=E5=A4= =96 (<methodname>Exception::__construct</methodname> =E3=81=AE 3 =E7=95= =AA=E7=9B=AE=E3=81=AE=E5=BC=95=E6=95=B0)=0A+ =E5=89=8D=E3=81=AB=E7=99= =BA=E7=94=9F=E3=81=97=E3=81=9F <classname>Throwable</classname> (<methodnam= e>Exception::__construct</methodname> =E3=81=AB=E6=B8=A1=E3=81=95=E3=82= =8C=E3=81=9F 3 =E7=95=AA=E7=9B=AE=E3=81=AE=E5=BC=95=E6=95=B0)=0A = =E3=82=92=E8=BF=94=E3=81=97=E3=81=BE=E3=81=99=E3=80=82=0A </para>=0A </r= efsect1>=0A