Skip to content

Commit

Permalink
Merge pull request #159 from ergebnis/fix/scope
Browse files Browse the repository at this point in the history
Fix: Update README.md in regard to parameter scope
  • Loading branch information
localheinz committed Dec 10, 2019
2 parents 217772c + 32be4cb commit 957fd0a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Expand Up @@ -75,7 +75,8 @@ By default, this rule allows to declare `abstract` classes. If you want to disal

```neon
parameters:
allowAbstractClasses: false
ergebnis:
allowAbstractClasses: false
```

##### Excluding classes from inspection
Expand All @@ -84,9 +85,10 @@ If you want to exclude classes from being inspected by this rule, you can set th

```neon
parameters:
classesNotRequiredToBeAbstractOrFinal:
- Foo\Bar\NeitherAbstractNorFinal
- Bar\Baz\NeitherAbstractNorFinal
ergebnis:
classesNotRequiredToBeAbstractOrFinal:
- Foo\Bar\NeitherAbstractNorFinal
- Bar\Baz\NeitherAbstractNorFinal
```

#### `Classes\NoExtendsRule`
Expand All @@ -105,9 +107,10 @@ If you want to allow additional classes to be extended, you can set the `classes

```neon
parameters:
classesAllowedToBeExtended:
- Ergebnis\PHPStan\Rules\Test\Integration\AbstractTestCase
- PHPStan\Testing\RuleTestCase
ergebnis:
classesAllowedToBeExtended:
- Ergebnis\PHPStan\Rules\Test\Integration\AbstractTestCase
- PHPStan\Testing\RuleTestCase
```

### Closures
Expand Down Expand Up @@ -209,9 +212,10 @@ If you want to configure the list of interfaces implemented by dependency inject

```neon
parameters:
interfacesImplementedByContainers:
- Fancy\DependencyInjection\ContainerInterface
- Other\ServiceLocatorInterface
ergebnis:
interfacesImplementedByContainers:
- Fancy\DependencyInjection\ContainerInterface
- Other\ServiceLocatorInterface
```

#### `Methods\NoParameterWithNullableTypeDeclarationRule`
Expand Down

0 comments on commit 957fd0a

Please sign in to comment.