From 7cf2c99302d8458ff76ad2ad3b63ef31db551f4c Mon Sep 17 00:00:00 2001 From: Oleksii Date: Thu, 21 Sep 2023 17:39:37 +0300 Subject: [PATCH] ~fix `DocblockTypeContradiction` --- .tools/.report/.psalm/report.txt | 1 - src/bootstrap.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.tools/.report/.psalm/report.txt b/.tools/.report/.psalm/report.txt index eab8e60..e69de29 100644 --- a/.tools/.report/.psalm/report.txt +++ b/.tools/.report/.psalm/report.txt @@ -1 +0,0 @@ -/app/src/bootstrap.php:26:17:warning - DocblockTypeContradiction: false|string does not contain true diff --git a/src/bootstrap.php b/src/bootstrap.php index 20b4c6a..93c7340 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -23,7 +23,7 @@ function ffiEnabled(): bool { return match (getenv('USE_FFI')) { - '1', 'true', 'yes', 'on', true => true, + '1', 'true', 'yes', 'on' => true, default => false, }; }