Skip to content

Commit e85b290

Browse files
authored
Merge pull request #108 from gsteel/deprecate-filter-constants
Deprecate array_filter related constants that should have been deprecated with companion method in 3.2
2 parents aecc565 + 0e8f942 commit e85b290

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

psalm-baseline.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@
330330
</UndefinedInterfaceMethod>
331331
</file>
332332
<file src="test/ArrayUtilsTest.php">
333+
<DeprecatedConstant>
334+
<code>ArrayUtils::ARRAY_FILTER_USE_BOTH</code>
335+
<code>ArrayUtils::ARRAY_FILTER_USE_KEY</code>
336+
</DeprecatedConstant>
333337
<DeprecatedMethod>
334338
<code>ArrayUtils::filter($data, $callback, $flag)</code>
335339
<code><![CDATA[ArrayUtils::filter([], "INVALID")]]></code>

src/ArrayUtils.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ abstract class ArrayUtils
3535
{
3636
/**
3737
* Compatibility Flag for ArrayUtils::filter
38+
*
39+
* @deprecated
3840
*/
3941
public const ARRAY_FILTER_USE_BOTH = 1;
4042

4143
/**
4244
* Compatibility Flag for ArrayUtils::filter
45+
*
46+
* @deprecated
4347
*/
4448
public const ARRAY_FILTER_USE_KEY = 2;
4549

0 commit comments

Comments
 (0)