From a6655e3f9508eee6860b02f55e33560a790f42d1 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 12 Feb 2021 13:16:42 +0100 Subject: [PATCH] Fix #75787: Array iterator functions misleading --- reference/array/functions/array-key-exists.xml | 9 ++++----- reference/array/functions/each.xml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/reference/array/functions/array-key-exists.xml b/reference/array/functions/array-key-exists.xml index f458eccb24..cca9b8621e 100644 --- a/reference/array/functions/array-key-exists.xml +++ b/reference/array/functions/array-key-exists.xml @@ -105,13 +105,12 @@ array_key_exists('first', $search_array); For backward compatibility reasons, array_key_exists will also return &true; if key is a property defined within an object given as - array. This behaviour should not be relied upon, - and care should be taken to ensure that array is - an array. + array. This behaviour is deprecated as of PHP 7.4.0, + and removed as of PHP 8.0.0. - To check whether a property exists in an object, use - property_exists. + To check whether a property exists in an object, + property_exists should be used. diff --git a/reference/array/functions/each.xml b/reference/array/functions/each.xml index 014019f996..9f0eeacd71 100644 --- a/reference/array/functions/each.xml +++ b/reference/array/functions/each.xml @@ -14,7 +14,7 @@ &reftitle.description; arrayeach - arrayarray + arrayobjectarray Return the current key and value pair from an array and advance the array