Skip to content

Commit

Permalink
Remove NoAbstractMethodRule as way too opinionated (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 21, 2024
1 parent cb7c2cd commit a23355d
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 173 deletions.
1 change: 0 additions & 1 deletion config/static-rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ rules:

# paths
- Symplify\PHPStanRules\Rules\NoMissingDirPathRule
- Symplify\PHPStanRules\Rules\NoAbstractMethodRule
- Symplify\PHPStanRules\Rules\NoReferenceRule
- Symplify\PHPStanRules\Rules\NoArrayAccessOnObjectRule

Expand Down
34 changes: 1 addition & 33 deletions docs/rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 43 Rules Overview
# 42 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -550,38 +550,6 @@ final class SomeService

<br>

## NoAbstractMethodRule

Use explicit interface contract or a service over unclear abstract methods

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

```php
abstract class SomeClass
{
abstract public function run();
}
```

:x:

<br>

```php
abstract class SomeClass implements RunnableInterface
{
}

interface RunnableInterface
{
public function run();
}
```

:+1:

<br>

## NoArrayAccessOnObjectRule

Use explicit methods over array access on object
Expand Down
70 changes: 0 additions & 70 deletions src/Rules/NoAbstractMethodRule.php

This file was deleted.

12 changes: 0 additions & 12 deletions tests/Rules/NoAbstractMethodRule/Fixture/SkipNonAbstractMethod.php

This file was deleted.

10 changes: 0 additions & 10 deletions tests/Rules/NoAbstractMethodRule/Fixture/SomeAbstractMethod.php

This file was deleted.

42 changes: 0 additions & 42 deletions tests/Rules/NoAbstractMethodRule/NoAbstractMethodRuleTest.php

This file was deleted.

5 changes: 0 additions & 5 deletions tests/Rules/NoAbstractMethodRule/config/configured_rule.neon

This file was deleted.

0 comments on commit a23355d

Please sign in to comment.