From 0bd62b0d5f0a3cb5c45d0e65d5618327a1f219ef Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 29 Apr 2023 19:02:41 +0800 Subject: [PATCH] fix phpstan --- src/SPC/builder/unix/library/curl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SPC/builder/unix/library/curl.php b/src/SPC/builder/unix/library/curl.php index 1e96e68e..fe03acf6 100644 --- a/src/SPC/builder/unix/library/curl.php +++ b/src/SPC/builder/unix/library/curl.php @@ -18,6 +18,7 @@ trait curl // lib:libssh2 $libssh2 = $this->builder->getLib('libssh2'); if ($this->builder->getLib('libssh2')) { + /* @phpstan-ignore-next-line */ $extra .= '-DLIBSSH2_LIBRARY="' . $libssh2->getStaticLibFiles(style: 'cmake') . '" ' . '-DLIBSSH2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" '; } else { @@ -26,6 +27,7 @@ trait curl // lib:nghttp2 if ($nghttp2 = $this->builder->getLib('nghttp2')) { $extra .= '-DUSE_NGHTTP2=ON ' . + /* @phpstan-ignore-next-line */ '-DNGHTTP2_LIBRARY="' . $nghttp2->getStaticLibFiles(style: 'cmake') . '" ' . '-DNGHTTP2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" '; } else {