Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Update README.md in regard to parameter scope #159

Merged
merged 1 commit into from Dec 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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