From 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 13:02:04 +0200 Subject: A few additional PHPStan rules (#5388) A subset of https://github.com/phpstan/phpstan-strict-rules --- lib/Minz/Extension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Minz/Extension.php') 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; -- cgit v1.2.3