Skip to content

Commit 9b20da1

Browse files
authored
Merge pull request #36 from localheinz/fix/wording
Fix: Wording
2 parents 14b00ba + ffdeaef commit 9b20da1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For a full diff see [`0.2.0...master`](https://github.com/localheinz/phpstan-rul
1414
* added `Functions\NoNullableReturnTypeDeclarationRule`, which reports an
1515
error when a function has a nullable return type declaration, and
1616
`Methods\NoNullableReturnTypeDeclarationRule`, which reports an error
17-
when a method declared on an anonymous class, a class, or an interface has a
17+
when a method declared in an anonymous class, a class, or an interface has a
1818
nullable return type declaration ([#16](https://github.com/localheinz/phpstan-rules/pull/16)), by [@localheinz](https://github.com/localheinz)
1919
* added `Closures\NoParameterWithNullDefaultValueRule`, which reports an
2020
error when a closure has a parameter with `null` as default value ([#26](https://github.com/localheinz/phpstan-rules/pull/26)), by [@localheinz](https://github.com/localheinz)
@@ -23,14 +23,14 @@ For a full diff see [`0.2.0...master`](https://github.com/localheinz/phpstan-rul
2323
* added `Functions\NoParameterWithNullDefaultValueRule`, which reports an
2424
error when a function has a parameter with `null` as default value ([#31](https://github.com/localheinz/phpstan-rules/pull/31)), by [@localheinz](https://github.com/localheinz)
2525
* added `Methods\NoParameterWithNullDefaultValueRule`, which reports an
26-
error when a method declared on an anonymous class, a class, or an interface
26+
error when a method declared in an anonymous class, a class, or an interface
2727
has a parameter with `null` as default value ([#32](https://github.com/localheinz/phpstan-rules/pull/32)), by [@localheinz](https://github.com/localheinz)
2828
* added `Closures\NoParameterWithNullableTypeDeclarationRule`, which reports an
2929
error when a closure has a parameter with a nullable type declaration ([#33](https://github.com/localheinz/phpstan-rules/pull/33)), by [@localheinz](https://github.com/localheinz)
3030
* added `Functions\NoParameterWithNullableTypeDeclarationRule`, which reports an
3131
error when a function has a parameter with a nullable type declaration ([#34](https://github.com/localheinz/phpstan-rules/pull/34)), by [@localheinz](https://github.com/localheinz)
3232
* added `Methods\NoParameterWithNullableTypeDeclarationRule`, which reports an
33-
error when a method declared on an anonymous class, a class, or an interface
33+
error when a method declared in an anonymous class, a class, or an interface
3434
has a parameter with a nullable type declaration ([#35](https://github.com/localheinz/phpstan-rules/pull/35)), by [@localheinz](https://github.com/localheinz)
3535

3636
## [`0.2.0`](https://github.com/localheinz/phpstan-rules/releases/tag/0.2.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ rules:
149149

150150
### `Methods\NoNullableReturnTypeDeclarationRule`
151151

152-
This rule reports an error when a method declared on an anonymous class, a class, or an interface uses a nullable return type declaration.
152+
This rule reports an error when a method declared in an anonymous class, a class, or an interface uses a nullable return type declaration.
153153

154154
If you want to use this rule, add it to your `phpstan.neon`:
155155

0 commit comments

Comments
 (0)