Skip to content

Commit 2e616af

Browse files
committed
PHPStan fix
1 parent 4fd8afc commit 2e616af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SPC/exception/ExceptionHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public static function handleSPCException(SPCException $e): void
6969
self::logError('Failed module: ' . ConsoleColor::yellow("library {$lib_info['library_name']} builder for {$lib_info['os']}"));
7070
} elseif ($ext_info = $e->getExtensionInfo()) {
7171
self::logError('Failed module: ' . ConsoleColor::yellow("shared extension {$ext_info['extension_name']} builder"));
72-
} elseif (self::$bind_builder) {
73-
$os = match (get_class(self::$bind_builder)) {
72+
} elseif (self::$builder) {
73+
$os = match (get_class(self::$builder)) {
7474
WindowsBuilder::class => 'Windows',
7575
MacOSBuilder::class => 'macOS',
7676
LinuxBuilder::class => 'Linux',
@@ -122,7 +122,7 @@ public static function handleSPCException(SPCException $e): void
122122
}
123123

124124
// get the full build info if possible
125-
if ($info = ExceptionHandler::$bind_build_php_extra_info) {
125+
if ($info = ExceptionHandler::$build_php_extra_info) {
126126
self::logError('', output_log: defined('DEBUG_MODE'));
127127
self::logError('Build PHP extra info:', output_log: defined('DEBUG_MODE'));
128128
self::printArrayInfo($info);
@@ -133,9 +133,9 @@ public static function handleSPCException(SPCException $e): void
133133
$info = $e->getBuildPHPInfo();
134134
self::logError('', output_log: defined('DEBUG_MODE'));
135135
self::logError('Builder function: ' . ConsoleColor::yellow($info['builder_function']), output_log: defined('DEBUG_MODE'));
136-
if (self::$bind_builder) {
136+
if (self::$builder) {
137137
self::logError('Builder options:', output_log: defined('DEBUG_MODE'));
138-
self::printArrayInfo(self::$bind_builder->getOptions());
138+
self::printArrayInfo(self::$builder->getOptions());
139139
}
140140
}
141141

@@ -166,7 +166,7 @@ public static function handleDefaultException(\Throwable $e): void
166166

167167
public static function bindBuilder(?BuilderBase $bind_builder): void
168168
{
169-
self::$bind_builder = $bind_builder;
169+
self::$builder = $bind_builder;
170170
}
171171

172172
public static function bindBuildPhpExtraInfo(array $build_php_extra_info): void

0 commit comments

Comments
 (0)