Skip to content

Commit

Permalink
Universal/DisallowInlineTabs: minor tweak to the tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Nov 8, 2024
1 parent 82c468b commit a3ef964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a3ef964

Please sign in to comment.