mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Refactor re2c fix-item
This commit is contained in:
@@ -7,6 +7,7 @@ namespace StaticPHP\Doctor\Item;
|
|||||||
use StaticPHP\Attribute\Doctor\CheckItem;
|
use StaticPHP\Attribute\Doctor\CheckItem;
|
||||||
use StaticPHP\Attribute\Doctor\FixItem;
|
use StaticPHP\Attribute\Doctor\FixItem;
|
||||||
use StaticPHP\Doctor\CheckResult;
|
use StaticPHP\Doctor\CheckResult;
|
||||||
|
use StaticPHP\Package\PackageInstaller;
|
||||||
|
|
||||||
class Re2cVersionCheck
|
class Re2cVersionCheck
|
||||||
{
|
{
|
||||||
@@ -29,7 +30,9 @@ class Re2cVersionCheck
|
|||||||
#[FixItem('build-re2c')]
|
#[FixItem('build-re2c')]
|
||||||
public function buildRe2c(): bool
|
public function buildRe2c(): bool
|
||||||
{
|
{
|
||||||
// TODO: implement re2c build process
|
$installer = new PackageInstaller();
|
||||||
return false;
|
$installer->addInstallPackage('re2c');
|
||||||
|
$installer->run(false);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user