com doc/fr: Apply commit a6655e3f9508eee6860b02f55e33560a790f42d1: reference/array/functions/array-key-exists.xml reference/array/functions/each.xml
[email protected] (George Peter Banyard) Wed, 17 Feb 2021 03:17:53 +0000
| Newsgroups | php.doc.fr |
|---|---|
| Message-ID | <[email protected]> |
Commit: 37cfe555148954f542dcc3c68be0cb511491f468 Author: George Peter Banyard <[email protected]> Wed, 17 Feb 2021 03:17:53 +0000 Parents: c5b37648b66674bef1a596c9f252de4fa4c3fbd1 Branches: master Link: http://git.php.net/?p=doc/fr.git;a=commitdiff;h=37cfe555148954f542dcc3c68be0cb511491f468 Log: Apply commit a6655e3f9508eee6860b02f55e33560a790f42d1 Fix #75787: Array iterator functions misleading Bugs: https://bugs.php.net/75787 Changed paths: M reference/array/functions/array-key-exists.xml M reference/array/functions/each.xml Diff: diff --git a/reference/array/functions/array-key-exists.xml b/reference/array/functions/array-key-exists.xml index ba402d14ac..9e6a704d1b 100644 --- a/reference/array/functions/array-key-exists.xml +++ b/reference/array/functions/array-key-exists.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: cd943f94a013b74df8765ab8e1a620a916a64a85 Maintainer: yannick Status: ready --> +<!-- EN-Revision: a6655e3f9508eee6860b02f55e33560a790f42d1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- CREDITS: DavidA. --> <refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook"> @@ -108,16 +108,15 @@ array_key_exists('first', $search_array); <note> <para> En raison de compatibilité ascendante, la fonction - <function>array_key_exists</function> peut aussi retourner &true; - si le paramètre <parameter>key</parameter> est une propriété - définie dans un objet, fourni comme paramètre - <parameter>array</parameter>. Ce comportement ne doit plus être - pris en considération, et vous devez vous assurer que le paramètre - <parameter>array</parameter> est un tableau. + <function>array_key_exists</function> peut aussi retourner &true; si + <parameter>key</parameter> est une propriété définie dans un + <type>object</type>, fourni comme paramètre <parameter>array</parameter>. + Ce comportement est obsolète à partir de PHP 7.4.0, et a été retiré + à partir de PHP 8.0.0. </para> <para> - Pour vérifier si une propriété existe dans un objet, utilisez la - fonction <function>property_exists</function>. + Pour vérifier si une propriété existe dans un objet, + <function>property_exists</function> devrait être utilisé. </para> </note> </refsect1> diff --git a/reference/array/functions/each.xml b/reference/array/functions/each.xml index 7eb6536f13..c885f6e025 100644 --- a/reference/array/functions/each.xml +++ b/reference/array/functions/each.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 755faca201b5ba15e23735f21ed056b47d954398 Maintainer: yannick Status: ready --> +<!-- EN-Revision: a6655e3f9508eee6860b02f55e33560a790f42d1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- CREDITS: DavidA. --> <refentry xml:id="function.each" xmlns="http://docbook.org/ns/docbook"> @@ -17,7 +17,7 @@ &reftitle.description; <methodsynopsis> <type>array</type><methodname>each</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + <methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam> </methodsynopsis> <para> <function>each</function> retourne la paire clé/valeur courante du tableau