aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/diagnose_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 16:48:03 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 16:50:58 +0900
commit12a7756588a20f1351e6976f0c009de5992514a9 (patch)
tree53ee08e207fc06687d998e9ad749e425e56ee138 /crates/shirabe/src/command/diagnose_command.rs
parent657440d01423b50153d07ebc288d9bd2fc982d52 (diff)
downloadphp-shirabe-12a7756588a20f1351e6976f0c009de5992514a9.tar.gz
php-shirabe-12a7756588a20f1351e6976f0c009de5992514a9.tar.zst
php-shirabe-12a7756588a20f1351e6976f0c009de5992514a9.zip
feat(php-shim): implement round() shim
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/diagnose_command.rs')
-rw-r--r--crates/shirabe/src/command/diagnose_command.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/diagnose_command.rs b/crates/shirabe/src/command/diagnose_command.rs
index 739adad..304f26f 100644
--- a/crates/shirabe/src/command/diagnose_command.rs
+++ b/crates/shirabe/src/command/diagnose_command.rs
@@ -16,7 +16,7 @@ use shirabe_php_shim::{
PHP_WINDOWS_VERSION_BUILD, PhpMixed, RuntimeException, count, curl_version, defined,
disk_free_space, extension_loaded, file_exists, filter_var, function_exists, get_class,
get_class_err, hash, implode, ini_get, ioncube_loader_iversion, ioncube_loader_version,
- is_array, is_string, key, max_i64, ob_get_clean, ob_start, phpinfo, reset, rtrim, sprintf,
+ is_array, is_string, key, max, ob_get_clean, ob_start, phpinfo, reset, rtrim, sprintf,
str_contains, str_replace, str_starts_with, strpos, strstr, strtolower, trim, version_compare,
};
use std::cell::RefCell;
@@ -1141,9 +1141,9 @@ impl DiagnoseCommand {
}
// Apply exit code updates after io borrow ends
if had_error {
- self.exit_code = max_i64(prev_exit_code, 2);
+ self.exit_code = max(prev_exit_code, 2);
} else if had_warning {
- self.exit_code = max_i64(prev_exit_code, 1);
+ self.exit_code = max(prev_exit_code, 1);
}
}