diff --git a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc index 8d4acfe0be..d35a607440 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc +++ b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc @@ -98,3 +98,7 @@ yield yield // phpcs:ignore Stnd.Category.SniffName from $test(); + +// Closure use should be ignored. These are subject to their own rules. +$cl = function() use ($b) {}; +$cl = function() use($b) {}; diff --git a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed index 6f83483a4d..7361e78c02 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed +++ b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed @@ -92,3 +92,7 @@ yield yield // phpcs:ignore Stnd.Category.SniffName from $test(); + +// Closure use should be ignored. These are subject to their own rules. +$cl = function() use ($b) {}; +$cl = function() use($b) {};