mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
PHPStan fix
This commit is contained in:
parent
4fd8afcee4
commit
2e616af836
@ -69,8 +69,8 @@ class ExceptionHandler
|
|||||||
self::logError('Failed module: ' . ConsoleColor::yellow("library {$lib_info['library_name']} builder for {$lib_info['os']}"));
|
self::logError('Failed module: ' . ConsoleColor::yellow("library {$lib_info['library_name']} builder for {$lib_info['os']}"));
|
||||||
} elseif ($ext_info = $e->getExtensionInfo()) {
|
} elseif ($ext_info = $e->getExtensionInfo()) {
|
||||||
self::logError('Failed module: ' . ConsoleColor::yellow("shared extension {$ext_info['extension_name']} builder"));
|
self::logError('Failed module: ' . ConsoleColor::yellow("shared extension {$ext_info['extension_name']} builder"));
|
||||||
} elseif (self::$bind_builder) {
|
} elseif (self::$builder) {
|
||||||
$os = match (get_class(self::$bind_builder)) {
|
$os = match (get_class(self::$builder)) {
|
||||||
WindowsBuilder::class => 'Windows',
|
WindowsBuilder::class => 'Windows',
|
||||||
MacOSBuilder::class => 'macOS',
|
MacOSBuilder::class => 'macOS',
|
||||||
LinuxBuilder::class => 'Linux',
|
LinuxBuilder::class => 'Linux',
|
||||||
@ -122,7 +122,7 @@ class ExceptionHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the full build info if possible
|
// get the full build info if possible
|
||||||
if ($info = ExceptionHandler::$bind_build_php_extra_info) {
|
if ($info = ExceptionHandler::$build_php_extra_info) {
|
||||||
self::logError('', output_log: defined('DEBUG_MODE'));
|
self::logError('', output_log: defined('DEBUG_MODE'));
|
||||||
self::logError('Build PHP extra info:', output_log: defined('DEBUG_MODE'));
|
self::logError('Build PHP extra info:', output_log: defined('DEBUG_MODE'));
|
||||||
self::printArrayInfo($info);
|
self::printArrayInfo($info);
|
||||||
@ -133,9 +133,9 @@ class ExceptionHandler
|
|||||||
$info = $e->getBuildPHPInfo();
|
$info = $e->getBuildPHPInfo();
|
||||||
self::logError('', output_log: defined('DEBUG_MODE'));
|
self::logError('', output_log: defined('DEBUG_MODE'));
|
||||||
self::logError('Builder function: ' . ConsoleColor::yellow($info['builder_function']), output_log: defined('DEBUG_MODE'));
|
self::logError('Builder function: ' . ConsoleColor::yellow($info['builder_function']), output_log: defined('DEBUG_MODE'));
|
||||||
if (self::$bind_builder) {
|
if (self::$builder) {
|
||||||
self::logError('Builder options:', output_log: defined('DEBUG_MODE'));
|
self::logError('Builder options:', output_log: defined('DEBUG_MODE'));
|
||||||
self::printArrayInfo(self::$bind_builder->getOptions());
|
self::printArrayInfo(self::$builder->getOptions());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ class ExceptionHandler
|
|||||||
|
|
||||||
public static function bindBuilder(?BuilderBase $bind_builder): void
|
public static function bindBuilder(?BuilderBase $bind_builder): void
|
||||||
{
|
{
|
||||||
self::$bind_builder = $bind_builder;
|
self::$builder = $bind_builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function bindBuildPhpExtraInfo(array $build_php_extra_info): void
|
public static function bindBuildPhpExtraInfo(array $build_php_extra_info): void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user