From a3ef964cd65cd12d0be326dece6c83473a513ac4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 23 Oct 2024 05:55:24 +0200 Subject: [PATCH] Universal/DisallowInlineTabs: minor tweak to the tests Follow up on 320 The Tokenizer changes related to `yield from` with comments, which were expected to go into PHPCS 3.11.0, have been merged. This updates the condition used in the tests to reflect the upstream change. --- Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php index ba44d93..4de6116 100644 --- a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php +++ b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php @@ -76,7 +76,7 @@ public function getErrorList($testFile = '') { // As of PHP 8.3, comments may be tokenized within a "yield from" token, but only for PHPCS < 3.11.0. $commentsInYieldFrom = false; - if (\PHP_VERSION_ID >= 80300 /*&& \version_compare(Config::VERSION, '3.11.0', '<')*/) { + if (\PHP_VERSION_ID >= 80300 && \version_compare(Config::VERSION, '3.11.0', '<')) { $commentsInYieldFrom = true; }