Giters
myclabs
/
php-enum
The enum PHP is missing, inspired from SplEnum
Geek Repo:
Geek Repo
Github PK Tool:
Github PK Tool
Stargazers:
2718
Watchers:
33
Issues:
70
Forks:
132
myclabs/php-enum Issues
Change $key from private to protected
Updated
5 months ago
`abstract class Enum` is marked as`@psalm-immutable` which causes errors in PHPStan
Updated
a year ago
Comments count
2
No CI here
Closed
2 years ago
Comments count
2
cs
Closed
2 years ago
phpstan warns about undefined template T in user enum
Closed
3 years ago
Comments count
1
Public const inside Enum class
Updated
3 years ago
Comments count
1
Using Enum object as array key?
Updated
3 years ago
Comments count
1
Removing unnecessary psalm suppress docblock
Updated
3 years ago
Clash with PHP 8.1 JsonSerializable Interface
Closed
3 years ago
Comments count
2
Most methods do not consider constants with same values.
Updated
3 years ago
Comments count
6
Eloquent Model Enum Casting fails after upgrading php-enum library from 1.7.7 to 1.8
Closed
3 years ago
TooManyTemplateParams errors with recent psalm
Closed
3 years ago
Comments count
4
`__callStatic` should probably be `@psalm-pure`
Closed
3 years ago
Comments count
1
Outdated dependencies
Closed
3 years ago
Comments count
2
Can't get an enum value in the associative array.
Closed
3 years ago
Build Failing due to psalm update
Updated
4 years ago
Comments count
3
Value passed to Enum::equals() can't be validated by static analysis
Closed
4 years ago
Comments count
7
Add isOneOf method
Closed
4 years ago
Comments count
2
Add docs on how to deal with phpstan types
Closed
4 years ago
Comments count
5
Implement Enum Interface
Closed
4 years ago
Comments count
7
Enum could not be converted to int
Closed
4 years ago
Comments count
1
Psalm reports static code analysis error
Closed
4 years ago
Comments count
1
PHP Enum ignores constant scope
Closed
4 years ago
Comments count
3
PHP Storm complains about unused private field CONSTANT_NAME
Closed
5 years ago
Comments count
2
Can't access the value when calling the enum
Closed
4 years ago
Comments count
1
Comparing Enums of different types should throw an exception
Closed
4 years ago
Comments count
3
Semantical error while parsing annotations between patch-versions
Closed
4 years ago
Comments count
6
isValid() returns false for a valid value?
Closed
4 years ago
Comments count
4
In the example "private const VIEW = 'view';" cannot be accessed via "Action::VIEW"
Closed
5 years ago
Comments count
8
Is there a better way of returning the enum value?
Closed
5 years ago
Comments count
3
Unhandled ReflectionException
Closed
5 years ago
Comments count
1
__toString() returns the enum's name, the documentation suggests otherwise.
Closed
5 years ago
Comments count
3
Construction of enum object with invalid value is possible
Closed
5 years ago
Comments count
6
Add support for phpstorm
Updated
5 years ago
[Feature Request] Method to retrieve human readable name for numeric enums
Closed
5 years ago
Comments count
2
Drop support for unsupported PHP versions
Closed
5 years ago
Comments count
7
Compatibility with php-ds/ext-ds
Closed
5 years ago
Comments count
11
Implement common standard for the comparison method
Closed
5 years ago
Comments count
1
Nullable value for enum
Closed
6 years ago
Comments count
4
More magic with attributes in __callStatic() method
Closed
6 years ago
Comments count
1
Base method toArray processes all constants, including privates.
Closed
6 years ago
Comments count
7
Implement JsonSerializable interface
Closed
6 years ago
Comments count
4
I made a Symfony ParamConverter integration bundle - please check
Closed
7 years ago
Comments count
2
Constant value can be a array
Updated
7 years ago
Comments count
22
EnumSets
Closed
7 years ago
Comments count
3
Set Default
Closed
7 years ago
Comments count
1
Method equals is incorrect working
Closed
7 years ago
Comments count
2
Create enum instance by key
Closed
7 years ago
Comments count
4
insert phpdoc version
Closed
8 years ago
Comments count
7
Return type of getValues()
Closed
8 years ago
Comments count
3
Previous
Next