From 0e8f9425afa206ec2bc84a5c648ec2d041aa11a6 Mon Sep 17 00:00:00 2001 From: George Steel Date: Wed, 13 Sep 2023 23:43:58 +0100 Subject: [PATCH] Deprecate array_filter related constants that should have been deprecated with companion method in 3.2 Signed-off-by: George Steel --- psalm-baseline.xml | 4 ++++ src/ArrayUtils.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 26e4b69d..1fb24768 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -330,6 +330,10 @@ + + ArrayUtils::ARRAY_FILTER_USE_BOTH + ArrayUtils::ARRAY_FILTER_USE_KEY + ArrayUtils::filter($data, $callback, $flag) diff --git a/src/ArrayUtils.php b/src/ArrayUtils.php index 75ddd529..935d9889 100644 --- a/src/ArrayUtils.php +++ b/src/ArrayUtils.php @@ -35,11 +35,15 @@ abstract class ArrayUtils { /** * Compatibility Flag for ArrayUtils::filter + * + * @deprecated */ public const ARRAY_FILTER_USE_BOTH = 1; /** * Compatibility Flag for ArrayUtils::filter + * + * @deprecated */ public const ARRAY_FILTER_USE_KEY = 2;