Skip to content

Commit

Permalink
Remove RequireThisCallOnLocalMethodRule, as not practical
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 19, 2023
1 parent a0967f0 commit 0f044ab
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 291 deletions.
1 change: 0 additions & 1 deletion config/static-rules.neon
Expand Up @@ -30,7 +30,6 @@ rules:
- Symplify\PHPStanRules\Rules\NoDefaultExceptionRule
- Symplify\PHPStanRules\Rules\NoParentMethodCallOnNoOverrideProcessRule
- Symplify\PHPStanRules\Rules\RequireThisOnParentMethodCallRule
- Symplify\PHPStanRules\Rules\RequireThisCallOnLocalMethodRule
- Symplify\PHPStanRules\Rules\ForbiddenMultipleClassLikeInOneFileRule

# comlexity
Expand Down
44 changes: 1 addition & 43 deletions docs/rules_overview.md
@@ -1,4 +1,4 @@
# 88 Rules Overview
# 87 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -2922,48 +2922,6 @@ final class IssueControl extends Control

<br>

## RequireThisCallOnLocalMethodRule

Use "$this-><method>()" instead of "self::<method>()" to call local method

- class: [`Symplify\PHPStanRules\Rules\RequireThisCallOnLocalMethodRule`](../src/Rules/RequireThisCallOnLocalMethodRule.php)

```php
class SomeClass
{
public function run()
{
self::execute();
}

private function execute()
{
}
}
```

:x:

<br>

```php
class SomeClass
{
public function run()
{
$this->execute();
}

private function execute()
{
}
}
```

:+1:

<br>

## RequireThisOnParentMethodCallRule

Use "$this-><method>()" instead of "parent::<method>()" unless in the same named method
Expand Down
133 changes: 0 additions & 133 deletions src/Rules/RequireThisCallOnLocalMethodRule.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 0f044ab

Please sign in to comment.