diff options
Diffstat (limited to 'include/type.h')
-rw-r--r-- | include/type.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/type.h b/include/type.h index 717ae90..bec0fd5 100644 --- a/include/type.h +++ b/include/type.h @@ -17,19 +17,19 @@ namespace Php { * Supported types for variables * The values are the same as the ones used internally in Zend */ -typedef enum _Type { - nullType = 0, - numericType = 1, - floatType = 2, - boolType = 3, - arrayType = 4, - objectType = 5, - stringType = 6, - resourceType = 7, - constantType = 8, - constantArrayType = 9, - callableType = 10 -} Type; +enum class Type : unsigned char { + Null = 0, + Numeric = 1, + Float = 2, + Bool = 3, + Array = 4, + Object = 5, + String = 6, + Resource = 7, + Constant = 8, + ConstantArray = 9, + Callable = 10 +}; /** * End of namespace |