[TASK] Deprecate ArrayUtility::inArray()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Deprecation-79316-DeprecateArrayUtilityinArray.rst
1 .. include:: ../../Includes.txt
2
3 =======================================================
4 Deprecation: #79316 - Deprecate ArrayUtility::inArray()
5 =======================================================
6
7 See :issue:`79316`
8
9 Description
10 ===========
11
12 Deprecate ArrayUtility::inArray()
13
14
15 Impact
16 ======
17
18 Calling php:`ArrayUtility::inArray()` method will trigger a deprecation log entry. Code using this method will work until it is removed in TYPO3 v9.
19
20
21 Affected Installations
22 ======================
23
24 Any installation using the mentioned method :php:`ArrayUtility::inArray()`.
25
26
27 Migration
28 =========
29
30 Use the native :php:`in_array()` function of PHP. It is strongly recommended to ensure the same type is used
31 everywhere and the 3rd parameter of :php:`in_array()` is set to :php:`true` to activate the type check.
32
33 .. index:: PHP-API