Skip to content

Commit af834c5

Browse files
authored
README: Fix typo (#318)
1 parent 3d48a63 commit af834c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getIds(array $entities): array {
124124
```
125125

126126

127-
### enforceEnumMatchRule
127+
### enforceEnumMatch
128128
- Enforces usage of `match ($enum)` instead of exhaustive conditions like `if ($enum === Enum::One) elseif ($enum === Enum::Two)`
129129
- This rule aims to "fix" a bit problematic behaviour of PHPStan (introduced at 1.10.0 and fixed in [1.10.34](https://github.com/phpstan/phpstan-src/commit/fc7c0283176e5dc3867ade26ac835ee7f52599a9)). It understands enum cases very well and forces you to adjust following code:
130130
```php

0 commit comments

Comments
 (0)