Skip to content
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
37 changes: 36 additions & 1 deletion reference/var/functions/settype.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: d816a0fad6c458d9515f697cc89e26ca9d8069f5 Maintainer: shein Status: ready -->
<!-- EN-Revision: 8d49e302b484f0e5c237dd16ca1afef3b7515f46 Maintainer: shein Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.settype" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -87,6 +87,41 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
Выбрасывает исключение <exceptionname>ValueError</exceptionname>, если значение
параметра <parameter>type</parameter> не является допустимым типом, начиная с PHP 8.0.0.
До PHP 8.0.0 выдавалось предупреждение <constant>E_WARNING</constant>
и возвращалось значение &false;.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
Теперь выбрасывается исключение <exceptionname>ValueError</exceptionname> при передаче
недопустимого типа в параметр <parameter>type</parameter>. Раньше
выдавалось предупреждение <constant>E_WARNING</constant> и функция возвращала
&false;.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
Loading