Skip to content

Commit a691078

Browse files
committed
cleanup
1 parent 5dc9030 commit a691078

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
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-
117
Collection of utilities for working with enums.
128

139
[Contributing](#contributing) | [Feedback](#feedback) | [License](#license) | [About Code for Romania](#about-code-for-romania)

src/Concerns/Comparable.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)