From 9d54de6a5172bf419b268835062b597fb5cf9b86 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Tue, 24 Jan 2023 06:50:09 +0100 Subject: [PATCH] Use a new method to display warning --- src/Psalm/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index c5ce6933e..10083095f 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -2243,8 +2243,8 @@ class Config $is_stub_already_loaded = in_array($ext_stub_path, $this->internal_stubs, true); if (! $is_stub_already_loaded && extension_loaded($ext_name)) { $this->internal_stubs[] = $ext_stub_path; - $progress->warning("Psalm 6 will not automatically load stubs for ext-$ext_name." - . " You should explicitly enable or disable this ext in composer.json or Psalm config."); + $this->config_warnings[] = "Psalm 6 will not automatically load stubs for ext-$ext_name." + . " You should explicitly enable or disable this ext in composer.json or Psalm config."; } }