We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb0a50 commit 22e8d51Copy full SHA for 22e8d51
composer.json
@@ -36,7 +36,10 @@
36
"MabeEnumTest\\": "tests/MabeEnumTest/",
37
"MabeEnumStaticAnalysis\\": "tests/MabeEnumStaticAnalysis/",
38
"MabeEnumBench\\": "bench/"
39
- }
+ },
40
+ "classmap": [
41
+ "stubs/Stringable.php"
42
+ ]
43
},
44
"extra": {
45
"branch-alias": {
src/Enum.php
@@ -17,7 +17,7 @@
17
*
18
* @psalm-immutable
19
*/
20
-abstract class Enum
+abstract class Enum implements \Stringable
21
{
22
/**
23
* The selected enumerator value
stubs/Stringable.php
@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+if (\PHP_VERSION_ID < 80000) {
4
+ interface Stringable
5
+ {
6
+ /**
7
+ * @return string
8
+ */
9
+ public function __toString();
10
+ }
11
+}
0 commit comments