diff options
| author | 2023-05-11 13:02:04 +0200 | |
|---|---|---|
| committer | 2023-05-11 13:02:04 +0200 | |
| commit | 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 (patch) | |
| tree | 7ba9f5aebb01d12045b9067a86b5060ba13dca18 /lib/Minz/Extension.php | |
| parent | fe7d9bbcd68660a59b813346c236b61b25a51c80 (diff) | |
A few additional PHPStan rules (#5388)
A subset of
https://github.com/phpstan/phpstan-strict-rules
Diffstat (limited to 'lib/Minz/Extension.php')
| -rw-r--r-- | lib/Minz/Extension.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index 8fe8c38b4..66cb4e144 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -153,7 +153,7 @@ abstract class Minz_Extension { /** @param 'user'|'system' $type */ private function setType(string $type): void { - if (!in_array($type, ['user', 'system'])) { + if (!in_array($type, ['user', 'system'], true)) { throw new Minz_ExtensionException('invalid `type` info', $this->name); } $this->type = $type; |
