From 1658284e5db5aa9a0162e96cd36bfe9bb09a2510 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Thu, 21 Sep 2023 10:26:00 -0300 Subject: [PATCH] Remove deprecated methods to `BaseYii::class`. --- framework/BaseYii.php | 25 ------------------------- tests/framework/BaseYiiTest.php | 5 ----- 2 files changed, 30 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index 29490b9084c..c34360bebcb 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -408,18 +408,6 @@ public static function debug($message, $category = 'application') } } - /** - * Alias of [[debug()]]. - * @param string|array $message the message to be logged. This can be a simple string or a more - * complex data structure, such as an array. - * @param string $category the category of the message. - * @deprecated since 2.0.14. Use [[debug()]] instead. - */ - public static function trace($message, $category = 'application') - { - static::debug($message, $category); - } - /** * Logs an error message. * An error message is typically logged when an unrecoverable error occurs @@ -494,19 +482,6 @@ public static function endProfile($token, $category = 'application') static::getLogger()->log($token, Logger::LEVEL_PROFILE_END, $category); } - /** - * Returns an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information. - * @return string an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information - * @deprecated since 2.0.14, this method will be removed in 2.1.0. - */ - public static function powered() - { - return \Yii::t('yii', 'Powered by {yii}', [ - 'yii' => '' . \Yii::t('yii', - 'Yii Framework') . '', - ]); - } - /** * Translates a message to the specified language. * diff --git a/tests/framework/BaseYiiTest.php b/tests/framework/BaseYiiTest.php index a35dceb1a6c..7795db947cd 100644 --- a/tests/framework/BaseYiiTest.php +++ b/tests/framework/BaseYiiTest.php @@ -70,11 +70,6 @@ public function testGetVersion() $this->assertTrue((bool) preg_match('~\d+\.\d+(?:\.\d+)?(?:-\w+)?~', \Yii::getVersion())); } - public function testPowered() - { - $this->assertIsString(Yii::powered()); - } - public function testCreateObjectArray() { Yii::$container = new Container();