mirror of
https://github.com/php/doc-fr.git
synced 2026-03-23 22:52:18 +01:00
[Sync EN] Document ValueError thrown by settype() since PHP 8.0 (#2614)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: d816a0fad6c458d9515f697cc89e26ca9d8069f5 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 8d49e302b484f0e5c237dd16ca1afef3b7515f46 Maintainer: lacatoire Status: ready -->
|
||||
<!-- Reviewed: yes -->
|
||||
|
||||
<refentry xml:id="function.settype" xmlns="http://docbook.org/ns/docbook">
|
||||
@@ -90,6 +90,41 @@
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
Lance une <exceptionname>ValueError</exceptionname> si la valeur de
|
||||
<parameter>type</parameter> n'est pas un type valide, à partir de PHP 8.0.0.
|
||||
Antérieur à PHP 8.0.0, une alerte <constant>E_WARNING</constant> était émise
|
||||
et &false; était retourné.
|
||||
</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>
|
||||
Lance désormais une <exceptionname>ValueError</exceptionname> lorsqu'un
|
||||
type invalide est passé au paramètre <parameter>type</parameter>. Antérieur à
|
||||
cette version, une alerte <constant>E_WARNING</constant> était émise et la
|
||||
fonction retournait &false;.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user