File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 4
4
[ ![ GitHub last commit] [ ico-last-commit ]] [ link-last-commit ]
5
5
[ ![ License: MPL 2.0] [ ico-license ]] [ link-license ]
6
6
7
- [ ![ GitHub contributors] [ ico-contributors ]] [ link-contributors ]
8
- [ ![ GitHub last commit] [ ico-last-commit ]] [ link-last-commit ]
9
- [ ![ License: MPL 2.0] [ ico-license ]] [ link-license ]
10
-
11
7
Collection of utilities for working with enums.
12
8
13
9
[ Contributing] ( #contributing ) | [ Feedback] ( #feedback ) | [ License] ( #license ) | [ About Code for Romania] ( #about-code-for-romania )
Original file line number Diff line number Diff line change @@ -27,20 +27,4 @@ public function isNot(BackedEnum | string | int | null $enum): bool
27
27
{
28
28
return ! $ this ->is ($ enum );
29
29
}
30
-
31
- /**
32
- * @deprecated Use `is()` instead.
33
- */
34
- public static function isValue (BackedEnum | string | int | null $ subject , BackedEnum $ enum ): bool
35
- {
36
- if ($ subject === null ) {
37
- return false ;
38
- }
39
-
40
- if (! $ subject instanceof self) {
41
- $ subject = self ::tryFrom (\is_int ($ enum ->value ) ? (int ) $ subject : (string ) $ subject );
42
- }
43
-
44
- return $ subject ?->is($ enum ) ?? false ;
45
- }
46
30
}
You can’t perform that action at this time.
0 commit comments