@@ -34,24 +34,53 @@ class Type
34
34
Parent = 'parent ' ,
35
35
Static = 'static ' ;
36
36
37
- /** @deprecated */
38
- public const
39
- STRING = self ::String,
40
- INT = self ::Int,
41
- FLOAT = self ::Float,
42
- BOOL = self ::Bool,
43
- ARRAY = self ::Array,
44
- OBJECT = self ::Object,
45
- CALLABLE = self ::Callable,
46
- ITERABLE = self ::Iterable,
47
- VOID = self ::Void,
48
- NEVER = self ::Never,
49
- MIXED = self ::Mixed,
50
- FALSE = self ::False,
51
- NULL = self ::Null,
52
- SELF = self ::Self,
53
- PARENT = self ::Parent,
54
- STATIC = self ::Static;
37
+ /** @deprecated use Type::String */
38
+ public const STRING = self ::String;
39
+
40
+ /** @deprecated use Type::Int */
41
+ public const INT = self ::Int;
42
+
43
+ /** @deprecated use Type::Float */
44
+ public const FLOAT = self ::Float;
45
+
46
+ /** @deprecated use Type::Bool */
47
+ public const BOOL = self ::Bool;
48
+
49
+ /** @deprecated use Type::Array */
50
+ public const ARRAY = self ::Array;
51
+
52
+ /** @deprecated use Type::Object */
53
+ public const OBJECT = self ::Object;
54
+
55
+ /** @deprecated use Type::Callable */
56
+ public const CALLABLE = self ::Callable;
57
+
58
+ /** @deprecated use Type::Iterable */
59
+ public const ITERABLE = self ::Iterable;
60
+
61
+ /** @deprecated use Type::Void */
62
+ public const VOID = self ::Void;
63
+
64
+ /** @deprecated use Type::Never */
65
+ public const NEVER = self ::Never;
66
+
67
+ /** @deprecated use Type::Mixed */
68
+ public const MIXED = self ::Mixed;
69
+
70
+ /** @deprecated use Type::False */
71
+ public const FALSE = self ::False;
72
+
73
+ /** @deprecated use Type::Null */
74
+ public const NULL = self ::Null;
75
+
76
+ /** @deprecated use Type::Self */
77
+ public const SELF = self ::Self;
78
+
79
+ /** @deprecated use Type::Parent */
80
+ public const PARENT = self ::Parent;
81
+
82
+ /** @deprecated use Type::Static */
83
+ public const STATIC = self ::Static;
55
84
56
85
57
86
public static function nullable (string $ type , bool $ state = true ): string
0 commit comments