[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: Update array_key_exists() key parameter type as of PHP 8.0.0 (#3135)
From:       Josh S via GitHub <noreply () php ! net>
Date:       2024-01-25 13:41:31
Message-ID: iNj05t13pIEFFlxi5b5VOnaHs8hzotTkza7qiimss () main ! php ! net
[Download RAW message or body]

Author: Josh S (schulerj89)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2024-01-25T13:27:45Z

Commit: https://github.com/php/doc-en/commit/89fe795cc8bcf1b5ff9eb894bff51f006db66a65
Raw diff: https://github.com/php/doc-en/commit/89fe795cc8bcf1b5ff9eb894bff51f006db66a65.diff


Update array_key_exists() key parameter type as of PHP 8.0.0 (#3135)

Changed paths:
  M  reference/array/functions/array-key-exists.xml


Diff:

diff --git a/reference/array/functions/array-key-exists.xml \
b/reference/array/functions/array-key-exists.xml index cca9b8621e3..f17b1edeb50 \
                100644
--- a/reference/array/functions/array-key-exists.xml
+++ b/reference/array/functions/array-key-exists.xml
@@ -10,7 +10,7 @@
   &reftitle.description;
   <methodsynopsis>
    <type>bool</type><methodname>array_key_exists</methodname>
-   <methodparam><type \
class="union"><type>string</type><type>int</type></type><parameter>key</parameter></methodparam>
 +   <methodparam><type \
class="union"><type>string</type><type>int</type><type>float</type><type>bool</type><t \
ype>resource</type><type>null</type></type><parameter>key</parameter></methodparam>  \
<methodparam><type>array</type><parameter>array</parameter></methodparam>  \
</methodsynopsis>  <para>
@@ -58,6 +58,31 @@
   </note>
  </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>
+       The <parameter>key</parameter> parameter now accepts
+       <parameter>bool</parameter>, <parameter>float</parameter>, \
<parameter>int</parameter>, +       <parameter>null</parameter>, \
<parameter>resource</parameter>, and +       <parameter>string</parameter> as \
arguments. +      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>

-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic