Skip to content

PHP 8.4: Document errors for XSLTProcessor::importStylesheet() を取り込み (#4136) #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion reference/xsl/xsltprocessor/importstylesheet.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- $Revision$ -->
<!-- EN-Revision: 07e6a4aaa2d28b6218a362b05e573fb13267358d Maintainer: takagi Status: ready -->
<!-- EN-Revision: d5ae08740fd16598ce24f7191a06665bf0ad370f Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry xml:id="xsltprocessor.importstylesheet" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -41,6 +41,38 @@
&return.success;
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
<parameter>stylesheet</parameter> が XML オブジェクトでない場合、
<exceptionname>TypeError</exceptionname> をスローします。
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>stylesheet</parameter> が XML オブジェクトでない場合、
<exceptionname>ValueError</exceptionname> の代わりに
<exceptionname>TypeError</exceptionname> をスローするようになりました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
Expand Down