Skip to content

Commit

Permalink
self_static_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 29, 2024
1 parent 40c27d3 commit eb73506
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Fixtures/Ruleset/relax-commonbox_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ class PhpdocNoUselessInheritdoc
function func() {}
}

/**
* self_static_accessor
*/
final class SelfStaticAccessor
{
private static $A = 1;

public function getBar()
{
return static::class.static::test().static::$A;
}
}

/**
* single_line_empty_body
*/
Expand Down
13 changes: 13 additions & 0 deletions tests/Fixtures/Ruleset/relax-commonbox_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ class PhpdocNoUselessInheritdoc
public function func() {}
}

/**
* self_static_accessor
*/
final class SelfStaticAccessor
{
private static $A = 1;

public function getBar()
{
return self::class.self::test().self::$A;
}
}

/**
* single_line_empty_body
*/
Expand Down

0 comments on commit eb73506

Please sign in to comment.