mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix phpstan
This commit is contained in:
parent
8df4ade754
commit
0bd62b0d5f
@ -18,6 +18,7 @@ trait curl
|
|||||||
// lib:libssh2
|
// lib:libssh2
|
||||||
$libssh2 = $this->builder->getLib('libssh2');
|
$libssh2 = $this->builder->getLib('libssh2');
|
||||||
if ($this->builder->getLib('libssh2')) {
|
if ($this->builder->getLib('libssh2')) {
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
$extra .= '-DLIBSSH2_LIBRARY="' . $libssh2->getStaticLibFiles(style: 'cmake') . '" ' .
|
$extra .= '-DLIBSSH2_LIBRARY="' . $libssh2->getStaticLibFiles(style: 'cmake') . '" ' .
|
||||||
'-DLIBSSH2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" ';
|
'-DLIBSSH2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" ';
|
||||||
} else {
|
} else {
|
||||||
@ -26,6 +27,7 @@ trait curl
|
|||||||
// lib:nghttp2
|
// lib:nghttp2
|
||||||
if ($nghttp2 = $this->builder->getLib('nghttp2')) {
|
if ($nghttp2 = $this->builder->getLib('nghttp2')) {
|
||||||
$extra .= '-DUSE_NGHTTP2=ON ' .
|
$extra .= '-DUSE_NGHTTP2=ON ' .
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
'-DNGHTTP2_LIBRARY="' . $nghttp2->getStaticLibFiles(style: 'cmake') . '" ' .
|
'-DNGHTTP2_LIBRARY="' . $nghttp2->getStaticLibFiles(style: 'cmake') . '" ' .
|
||||||
'-DNGHTTP2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" ';
|
'-DNGHTTP2_INCLUDE_DIR="' . BUILD_INCLUDE_PATH . '" ';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user