diff --git a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc index 97479d91e5..efb2f2c330 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc +++ b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc @@ -428,3 +428,19 @@ class PHP84FinalProperties { final private bool $finalPrivate; } + +class MultilineCommentShouldNotBeSplitUp { + // This is the first line + // of a multi-line comment + // which should be recognized as belonging + // with the property. + public $prop; + + + /* This is the first line + of a multi-line comment + which should be recognized as belonging + with the property. + */ + public $prop; +} diff --git a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc.fixed b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc.fixed index c11ddbc398..e93746517d 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc.fixed +++ b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.1.inc.fixed @@ -415,3 +415,19 @@ class PHP84FinalProperties { final private bool $finalPrivate; } + +class MultilineCommentShouldNotBeSplitUp { + + // This is the first line + // of a multi-line comment + // which should be recognized as belonging + // with the property. + public $prop; + + /* This is the first line + of a multi-line comment + which should be recognized as belonging + with the property. + */ + public $prop; +} diff --git a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php index dbc3de4c26..9f43362568 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php @@ -85,6 +85,8 @@ public function getErrorList($testFile='') 416 => 1, 420 => 1, 427 => 1, + 437 => 1, + 445 => 1, ]; default: