aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/console/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/console/application.rs')
-rw-r--r--crates/shirabe/src/console/application.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs
index 36151563..96f80d9b 100644
--- a/crates/shirabe/src/console/application.rs
+++ b/crates/shirabe/src/console/application.rs
@@ -2301,10 +2301,10 @@ impl ApplicationHandle {
io.write_error("<warning>Composer is operating slower than normal because you have Xdebug enabled. See https://getcomposer.org/xdebug</warning>");
}
- if defined("COMPOSER_DEV_WARNING_TIME")
+ if let Some(dev_warning_time) = composer::COMPOSER_DEV_WARNING_TIME
&& command_name.as_deref() != Some("self-update")
&& command_name.as_deref() != Some("selfupdate")
- && time() > shirabe_php_shim::composer_dev_warning_time()
+ && time() > dev_warning_time
{
io.write_error(&format!(
"<warning>Warning: This development build of Composer is over 60 days old. It is recommended to update it by running \"{} self-update\" to get the latest version.</warning>",