Skip to content

Commit

Permalink
Merge pull request #141 from magento-commerce/imported-sergeynezbrits…
Browse files Browse the repository at this point in the history
…kiy-magento-coding-standard-346

[Imported] Fix Issue 340
  • Loading branch information
sivaschenko authored Dec 22, 2021
2 parents 6f2a73b + 816605b commit cd02bf3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class ClassPropertyPHPDocFormattingSniff extends AbstractVariableSniff
T_WHITESPACE,
T_NS_SEPARATOR,
T_STRING,
T_COMMENT
T_COMMENT,
T_NULLABLE
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,12 @@ class correctlyFormattedClassMemberDocBlock
/**
* @var string
*/
protected string $test;
protected string $test1;

/**
* Ensure that nullable sign in the property type hint declaration is interpreted correctly
*
* @var string|null
*/
protected ?string $test2;
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</testsuite>
</testsuites>
<php>
<env name="PHPCS_IGNORE_TESTS" value="Generic,MySource,PEAR,PSR1,PSR2,Squiz,Zend"/>
<env name="PHPCS_IGNORE_TESTS" value="Generic,MySource,PEAR,PSR1,PSR2,PSR12,Squiz,Zend"/>
</php>
</phpunit>

0 comments on commit cd02bf3

Please sign in to comment.