diff --git a/README.md b/README.md index 71cf2bb..c355358 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Yii2 Excel Export [![Latest Unstable Version](https://poser.pugx.org/codemix/yii2-excelexport/v/unstable)](https://packagist.org/packages/codemix/yii2-excelexport) [![License](https://poser.pugx.org/codemix/yii2-excelexport/license)](https://packagist.org/packages/codemix/yii2-excelexport) +> **Note:** The minimum requirement since 2.6.0 is Yii 2.0.13. The latest +> version for older Yii releases is 2.5.0. ## Features diff --git a/composer.json b/composer.json index ca5fa02..88379f8 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "yiisoft/yii2": "*", + "yiisoft/yii2": "~2.0.13", "mikehaertl/php-tmpfile": "^1.0.0", "phpoffice/phpexcel": "1.*" }, diff --git a/src/ExcelFile.php b/src/ExcelFile.php index 456532c..5ea118a 100644 --- a/src/ExcelFile.php +++ b/src/ExcelFile.php @@ -2,14 +2,14 @@ namespace codemix\excelexport; use Yii; -use yii\base\Object; +use yii\base\BaseObject; use yii\helpers\ArrayHelper; use mikehaertl\tmp\File; /** * This class represents an excel file. */ -class ExcelFile extends Object +class ExcelFile extends BaseObject { /** * @var string the writer class to use. Default is