mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-14 04:15:35 +08:00
simplify hasCppExtension() method
This commit is contained in:
@@ -148,14 +148,12 @@ abstract class BuilderBase
|
|||||||
{
|
{
|
||||||
// judge cpp-extension
|
// judge cpp-extension
|
||||||
$exts = array_keys($this->getExts());
|
$exts = array_keys($this->getExts());
|
||||||
$cpp = false;
|
|
||||||
foreach ($exts as $ext) {
|
foreach ($exts as $ext) {
|
||||||
if (Config::getExt($ext, 'cpp-extension', false) === true) {
|
if (Config::getExt($ext, 'cpp-extension', false) === true) {
|
||||||
$cpp = true;
|
return true;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $cpp;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user