44
55namespace Rector \ValueObject ;
66
7- /**
8- * @api
9- */
107final class PhpVersionFeature
118{
129 public const int PROPERTY_MODIFIER = PhpVersion::PHP_52 ;
1310
1411 public const int CONTINUE_TO_BREAK = PhpVersion::PHP_52 ;
1512
16- public const int NO_REFERENCE_IN_NEW = PhpVersion::PHP_53 ;
17-
1813 public const int SERVER_VAR = PhpVersion::PHP_53 ;
1914
2015 public const int DIR_CONSTANT = PhpVersion::PHP_53 ;
@@ -29,8 +24,6 @@ final class PhpVersionFeature
2924
3025 public const int SHORT_ARRAY = PhpVersion::PHP_54 ;
3126
32- public const int DATE_TIME_INTERFACE = PhpVersion::PHP_55 ;
33-
3427 /**
3528 * @see https://wiki.php.net/rfc/class_name_scalars
3629 */
@@ -40,8 +33,6 @@ final class PhpVersionFeature
4033
4134 public const int EXP_OPERATOR = PhpVersion::PHP_56 ;
4235
43- public const int REQUIRE_DEFAULT_VALUE = PhpVersion::PHP_56 ;
44-
4536 public const int SCALAR_TYPES = PhpVersion::PHP_70 ;
4637
4738 public const int HAS_RETURN_TYPE = PhpVersion::PHP_70 ;
@@ -68,8 +59,6 @@ final class PhpVersionFeature
6859
6960 public const int NO_EREG_FUNCTION = PhpVersion::PHP_70 ;
7061
71- public const int VARIABLE_ON_FUNC_CALL = PhpVersion::PHP_70 ;
72-
7362 public const int NO_MKTIME_WITHOUT_ARG = PhpVersion::PHP_70 ;
7463
7564 public const int NO_EMPTY_LIST = PhpVersion::PHP_70 ;
@@ -88,12 +77,8 @@ final class PhpVersionFeature
8877
8978 public const int ANONYMOUS_FUNCTION_RETURN_TYPE = PhpVersion::PHP_70 ;
9079
91- public const int ITERABLE_TYPE = PhpVersion::PHP_71 ;
92-
9380 public const int VOID_TYPE = PhpVersion::PHP_71 ;
9481
95- public const int CONSTANT_VISIBILITY = PhpVersion::PHP_71 ;
96-
9782 public const int ARRAY_DESTRUCT = PhpVersion::PHP_71 ;
9883
9984 public const int MULTI_EXCEPTION_CATCH = PhpVersion::PHP_71 ;
@@ -104,8 +89,6 @@ final class PhpVersionFeature
10489
10590 public const int NO_EXTRA_PARAMETERS = PhpVersion::PHP_71 ;
10691
107- public const int RESERVED_OBJECT_KEYWORD = PhpVersion::PHP_71 ;
108-
10992 public const int DEPRECATE_EACH = PhpVersion::PHP_72 ;
11093
11194 public const int OBJECT_TYPE = PhpVersion::PHP_72 ;
@@ -116,8 +99,6 @@ final class PhpVersionFeature
11699
117100 public const int NO_NULL_ON_GET_CLASS = PhpVersion::PHP_72 ;
118101
119- public const int INVERTED_BOOL_IS_OBJECT_INCOMPLETE_CLASS = PhpVersion::PHP_72 ;
120-
121102 public const int RESULT_ARG_IN_PARSE_STR = PhpVersion::PHP_72 ;
122103
123104 public const int STRING_IN_FIRST_DEFINE_ARG = PhpVersion::PHP_72 ;
@@ -151,23 +132,14 @@ final class PhpVersionFeature
151132
152133 public const int ARROW_FUNCTION = PhpVersion::PHP_74 ;
153134
154- public const int LITERAL_SEPARATOR = PhpVersion::PHP_74 ;
155-
156135 public const int NULL_COALESCE_ASSIGN = PhpVersion::PHP_74 ;
157136
158137 public const int TYPED_PROPERTIES = PhpVersion::PHP_74 ;
159138
160- /**
161- * @see https://wiki.php.net/rfc/covariant-returns-and-contravariant-parameters
162- */
163- public const int COVARIANT_RETURN = PhpVersion::PHP_74 ;
164-
165139 public const int ARRAY_SPREAD = PhpVersion::PHP_74 ;
166140
167141 public const int DEPRECATE_CURLY_BRACKET_ARRAY_STRING = PhpVersion::PHP_74 ;
168142
169- public const int DEPRECATE_REAL = PhpVersion::PHP_74 ;
170-
171143 public const int DEPRECATE_MONEY_FORMAT = PhpVersion::PHP_74 ;
172144
173145 public const int ARRAY_KEY_EXISTS_TO_PROPERTY_EXISTS = PhpVersion::PHP_74 ;
@@ -176,10 +148,6 @@ final class PhpVersionFeature
176148
177149 public const int CHANGE_MB_STRPOS_ARG_POSITION = PhpVersion::PHP_74 ;
178150
179- public const int RESERVED_FN_FUNCTION_NAME = PhpVersion::PHP_74 ;
180-
181- public const int REFLECTION_TYPE_GETNAME = PhpVersion::PHP_74 ;
182-
183151 public const int EXPORT_TO_REFLECTION_FUNCTION = PhpVersion::PHP_74 ;
184152
185153 public const int DEPRECATE_NESTED_TERNARY = PhpVersion::PHP_74 ;
@@ -196,8 +164,6 @@ final class PhpVersionFeature
196164
197165 public const int NO_FINAL_PRIVATE = PhpVersion::PHP_80 ;
198166
199- public const int DEPRECATE_REQUIRED_PARAMETER_AFTER_OPTIONAL = PhpVersion::PHP_80 ;
200-
201167 public const int STATIC_VISIBILITY_SET_STATE = PhpVersion::PHP_80 ;
202168
203169 public const int NULLSAFE_OPERATOR = PhpVersion::PHP_80 ;
@@ -208,8 +174,6 @@ final class PhpVersionFeature
208174
209175 public const int PARENT_VISIBILITY_OVERRIDE = PhpVersion::PHP_72 ;
210176
211- public const int COUNT_ON_NULL = PhpVersion::PHP_71 ;
212-
213177 /**
214178 * @see https://wiki.php.net/rfc/constructor_promotion
215179 */
@@ -222,8 +186,6 @@ final class PhpVersionFeature
222186
223187 public const int STRINGABLE = PhpVersion::PHP_80 ;
224188
225- public const int PHP_TOKEN = PhpVersion::PHP_80 ;
226-
227189 public const int STR_ENDS_WITH = PhpVersion::PHP_80 ;
228190
229191 public const int STR_STARTS_WITH = PhpVersion::PHP_80 ;
@@ -267,21 +229,11 @@ final class PhpVersionFeature
267229 */
268230 public const int NON_CAPTURING_CATCH = PhpVersion::PHP_80 ;
269231
270- /**
271- * @see https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.resource2object
272- */
273- public const int PHP8_RESOURCE_TO_OBJECT = PhpVersion::PHP_80 ;
274-
275232 /**
276233 * @see https://wiki.php.net/rfc/lsp_errors
277234 */
278235 public const int FATAL_ERROR_ON_INCOMPATIBLE_METHOD_SIGNATURE = PhpVersion::PHP_80 ;
279236
280- /**
281- * @see https://www.php.net/manual/en/migration81.incompatible.php#migration81.incompatible.resource2object
282- */
283- public const int PHP81_RESOURCE_TO_OBJECT = PhpVersion::PHP_81 ;
284-
285237 /**
286238 * @see https://wiki.php.net/rfc/new_in_initializers
287239 */
@@ -297,26 +249,11 @@ final class PhpVersionFeature
297249 */
298250 public const int UNION_INTERSECTION_TYPES = PhpVersion::PHP_82 ;
299251
300- /**
301- * @see https://wiki.php.net/rfc/array_unpacking_string_keys
302- */
303- public const int ARRAY_SPREAD_STRING_KEYS = PhpVersion::PHP_81 ;
304-
305- /**
306- * @see https://wiki.php.net/rfc/internal_method_return_types
307- */
308- public const int RETURN_TYPE_WILL_CHANGE_ATTRIBUTE = PhpVersion::PHP_81 ;
309-
310252 /**
311253 * @see https://wiki.php.net/rfc/first_class_callable_syntax
312254 */
313255 public const int FIRST_CLASS_CALLABLE_SYNTAX = PhpVersion::PHP_81 ;
314256
315- /**
316- * @see https://wiki.php.net/rfc/deprecate_dynamic_properties
317- */
318- public const int DEPRECATE_DYNAMIC_PROPERTIES = PhpVersion::PHP_82 ;
319-
320257 /**
321258 * @see https://wiki.php.net/rfc/readonly_classes
322259 */
@@ -337,11 +274,6 @@ final class PhpVersionFeature
337274 */
338275 public const int MIXED_TYPE = PhpVersion::PHP_80 ;
339276
340- /**
341- * @see https://3v4l.org/OWtO5
342- */
343- public const int ARRAY_ON_ARRAY_MERGE = PhpVersion::PHP_80 ;
344-
345277 public const int DEPRECATE_NULL_ARG_IN_STRING_FUNCTION = PhpVersion::PHP_81 ;
346278
347279 /**
0 commit comments