Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MO4/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<!-- Require use of constructor property promotion -->
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion"/>
<!-- Require trait use statements to be sorted alphabetically -->
<rule ref="SlevomatCodingStandard.Classes.TraitUseOrder"/>
<!-- Forbid static:: in final class -->
<rule ref="SlevomatCodingStandard.Classes.UselessLateStaticBinding"/>
<!-- Forbid empty comments-->
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": "^8.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"escapestudios/symfony2-coding-standard": "^3.17",
"slevomat/coding-standard": "^8.23",
"slevomat/coding-standard": "^8.28.1",
"squizlabs/php_codesniffer": "^4.0"
},
"require-dev": {
Expand Down
7 changes: 7 additions & 0 deletions integrationtests/testfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
*/
class FooBar
{
use AlphaTrait;
/**
* @use GenericTrait<foo>
*/
use GenericTrait;
use ZebraTrait;

public const SOME_CONST = 42;
public const STR_CONST = '43';
protected const PROTECT = 0;
Expand Down
Loading