From 2c6f310237e788af9311280f9f62552580870202 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 2 Nov 2024 09:47:17 +0100 Subject: [PATCH] Helper/TokenHelper: remove use of T_ARRAY_HINT This token was deprecated in PHPCS 3.3.0 and has been unused in PHPCS since, so no need to look for it as the minimum PHPCS version for this standard is PHPCS 3.9.0. --- SlevomatCodingStandard/Helpers/TokenHelper.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/SlevomatCodingStandard/Helpers/TokenHelper.php b/SlevomatCodingStandard/Helpers/TokenHelper.php index 4773a923f..fda1764d8 100644 --- a/SlevomatCodingStandard/Helpers/TokenHelper.php +++ b/SlevomatCodingStandard/Helpers/TokenHelper.php @@ -8,7 +8,6 @@ use function count; use const T_ANON_CLASS; use const T_ARRAY; -use const T_ARRAY_HINT; use const T_BREAK; use const T_CALLABLE; use const T_CLASS; @@ -502,7 +501,6 @@ public static function getOnlyTypeHintTokenCodes(): array [ T_SELF, T_PARENT, - T_ARRAY_HINT, T_CALLABLE, T_FALSE, T_TRUE,