File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44[ ![ GitHub last commit] [ ico-last-commit ]] [ link-last-commit ]
55[ ![ License: MPL 2.0] [ ico-license ]] [ link-license ]
66
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-
117Collection of utilities for working with enums.
128
139[ 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
2727 {
2828 return ! $ this ->is ($ enum );
2929 }
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- }
4630}
You can’t perform that action at this time.
0 commit comments