Loading coder_sniffer/Drupal/Sniffs/Commenting/VariableCommentSniff.php +3 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,9 @@ class VariableCommentSniff extends AbstractVariableSniff T_VAR, T_STATIC, T_WHITESPACE, T_STRING, T_NS_SEPARATOR, T_NULLABLE, ]; $commentEnd = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true); Loading coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc +5 −0 Original line number Diff line number Diff line Loading @@ -46,4 +46,9 @@ class Test { protected $missingComment; /** * A typed property should still contain a variable comment. */ public ?Bar $bar; } coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc.fixed +5 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,9 @@ class Test { protected $missingComment; /** * A typed property should still contain a variable comment. */ public ?Bar $bar; } coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ class VariableCommentUnitTest extends CoderSniffUnitTest 42 => 1, 45 => 1, 47 => 1, 51 => 1, ]; }//end getErrorList() Loading coder_sniffer/Drupal/Test/good/good.php +7 −0 Original line number Diff line number Diff line Loading @@ -606,6 +606,13 @@ class Bar { */ public $barProperty = 1; /** * Using property types is allowed. * * @var \Foo\Bar */ public ?Bar $bar; /** * Public static variables use camelCase, too. * Loading Loading
coder_sniffer/Drupal/Sniffs/Commenting/VariableCommentSniff.php +3 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,9 @@ class VariableCommentSniff extends AbstractVariableSniff T_VAR, T_STATIC, T_WHITESPACE, T_STRING, T_NS_SEPARATOR, T_NULLABLE, ]; $commentEnd = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true); Loading
coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc +5 −0 Original line number Diff line number Diff line Loading @@ -46,4 +46,9 @@ class Test { protected $missingComment; /** * A typed property should still contain a variable comment. */ public ?Bar $bar; }
coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.inc.fixed +5 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,9 @@ class Test { protected $missingComment; /** * A typed property should still contain a variable comment. */ public ?Bar $bar; }
coder_sniffer/Drupal/Test/Commenting/VariableCommentUnitTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ class VariableCommentUnitTest extends CoderSniffUnitTest 42 => 1, 45 => 1, 47 => 1, 51 => 1, ]; }//end getErrorList() Loading
coder_sniffer/Drupal/Test/good/good.php +7 −0 Original line number Diff line number Diff line Loading @@ -606,6 +606,13 @@ class Bar { */ public $barProperty = 1; /** * Using property types is allowed. * * @var \Foo\Bar */ public ?Bar $bar; /** * Public static variables use camelCase, too. * Loading