diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f526e3..30b983b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * **Fixed** for any bug fixes. * **Security** in case of vulnerabilities. +## [0.7.2] 2020-05-01 + * Replace YiiDynamicStaticMethodReturnTypeExtension with a stub + ## [0.7.1] 2019-12-16 ### Removed * 'Call to an undefined method yii\console\Response' ignored error diff --git a/tests/Yii/MyController.php b/tests/Yii/MyController.php index 34b5e44..69725f6 100644 --- a/tests/Yii/MyController.php +++ b/tests/Yii/MyController.php @@ -43,6 +43,8 @@ public function actionMy(): void $flag = \Yii::$app->customComponent->flag; + $objectClass = \SplObjectStorage::class; + \Yii::createObject($objectClass)->count(); \Yii::createObject(\SplObjectStorage::class)->count(); \Yii::createObject('SplObjectStorage')->count(); \Yii::createObject(['class' => '\SplObjectStorage'])->count();